資源簡介
matlab開發(fā)-DTMF。雙音多頻聲調(diào)
代碼片段和文件信息
symbol?=?{‘1‘‘2‘‘3‘‘4‘‘5‘‘6‘‘7‘‘8‘‘9‘‘*‘‘0‘‘#‘};
lfg?=?[697?770?852?941];?%?Low?frequency?group
hfg?=?[1209?1336?1477];??%?High?frequency?group
f??=?[];
for?c=1:4
????for?r=1:3
????????f?=?[?f?[lfg(c);hfg(r)]?];
????end
end
Fs??=?8000;???????%?Sampling?frequency?8?kHz
N?=?800;??????????%?Tones?of?100?ms
t???=?(0:N-1)/Fs;?%?800?samples?at?Fs
pit?=?2*pi*t;
tones?=?zeros(Nsize(f2));
for?toneChoice=1:12
????%?Generate?tone
????tones(:toneChoice)?=?sum(sin(f(:toneChoice)*pit))‘;
????%?Plot?tone
????subplot(43toneChoice)plot(t*1e3tones(:toneChoice));
????title([‘Symbol?“‘?symbol{toneChoice}‘“:?[‘num2str(f(1toneChoice))‘‘num2str(f(2toneChoice))‘]‘])
????set(gca?‘Xlim‘?[0?25]);
????ylabel(‘Amplitude‘);
????if?toneChoice>9?xlabel(‘Time?(m
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????1066??2016-10-03?05:32??DTMF.m
?????文件????????1315??2016-10-03?05:32??license.txt
評論
共有 條評論