文件名称:DetDTMF1
介绍说明--下载内容均来自于网络,请自行研究使用
for K_ind = 1 : length(k)
y = goertzel_algo ( dtmf_output,k(K_ind),Num_of_samples)
if (K_ind == 1) this appends each Kth array to
y1(1 : Num_of_samples) = y( 1 : Num_of_samples) the output array
else
v_sum = v_sum + Num_of_samples
y1(v_sum + 1 : v_sum + Num_of_samples) = y( 1: Num_of_samples)
end
ymax(K_ind) = max(y)
end
Goertzel_array = ymax
To find the two maximum peaks
temp = ymax(1)
temp1 = 1
for s = 2:8
if (ymax(s) > temp)
temp = ymax(s)
temp1 = s
-for K_ind = 1 : length(k)
y = goertzel_algo ( dtmf_output,k(K_ind),Num_of_samples)
if (K_ind == 1) this appends each Kth array to
y1(1 : Num_of_samples) = y( 1 : Num_of_samples) the output array
else
v_sum = v_sum+ Num_of_samples
y1(v_sum+ 1 : v_sum+ Num_of_samples) = y( 1: Num_of_samples)
end
ymax(K_ind) = max(y)
end
Goertzel_array = ymax
To find the two maximum peaks
temp = ymax(1)
temp1 = 1
for s = 2:8
if (ymax(s) > temp)
temp = ymax(s)
temp1 = s
y = goertzel_algo ( dtmf_output,k(K_ind),Num_of_samples)
if (K_ind == 1) this appends each Kth array to
y1(1 : Num_of_samples) = y( 1 : Num_of_samples) the output array
else
v_sum = v_sum + Num_of_samples
y1(v_sum + 1 : v_sum + Num_of_samples) = y( 1: Num_of_samples)
end
ymax(K_ind) = max(y)
end
Goertzel_array = ymax
To find the two maximum peaks
temp = ymax(1)
temp1 = 1
for s = 2:8
if (ymax(s) > temp)
temp = ymax(s)
temp1 = s
-for K_ind = 1 : length(k)
y = goertzel_algo ( dtmf_output,k(K_ind),Num_of_samples)
if (K_ind == 1) this appends each Kth array to
y1(1 : Num_of_samples) = y( 1 : Num_of_samples) the output array
else
v_sum = v_sum+ Num_of_samples
y1(v_sum+ 1 : v_sum+ Num_of_samples) = y( 1: Num_of_samples)
end
ymax(K_ind) = max(y)
end
Goertzel_array = ymax
To find the two maximum peaks
temp = ymax(1)
temp1 = 1
for s = 2:8
if (ymax(s) > temp)
temp = ymax(s)
temp1 = s
(系统自动生成,下载前可以参看下载内容)
下载文件列表
DetDTMF1.m