Professional Documents
Culture Documents
testout=ttdecode(phone);
plot(omega,abs(ft)); testout
testout= 5 5 5 7 3 1 9
So, we understand that if a dtmf tone is received
we can identify the tone frequency by plotting to the
Fourier transform of it and looking at the impulse
locations on the frequency axis.
n=-1000:1000;
d5=sin(0.5906*n)+sin(1.0247*n);
N=5000;
ft=fftshift(fft(d5,N));
omega=linspace(-pi,pi,N);
plot(omega,abs(ft));
n=-1000:1000;