Dual Tone Multi Frequency Fourier Transform
Mostrar comentarios más antiguos
I'm trying to take Fourier Tranfrom of each tones but they are the same graph what am I missing ?
clc
clear all
close
Fs = 8000;
N = 800;
fm = -Fs/2:Fs/N:Fs/2-1;
t = (0:N-1)/Fs;
symbols = {'1','2','3','A','4','5','6','B','7','8','9','C','*','0','#','D'};
rFreqs = [697, 770, 852, 941];
cFreqs = [1209, 1336, 1477, 1633];
f = [];
for i = 1:4
for j = 1:4
f = [ f [rFreqs(i);cFreqs(j)]];
end
end
for toneChoice = 1:16
tones(:,toneChoice) = sum(sin(f(:,toneChoice)*2*pi*t));
figure(1)
subplot(4,4,toneChoice)
plot(t*1e3,tones(:,toneChoice)); xlim([0,25])
title(symbols{toneChoice});xlabel("Time(ms)");ylabel("Amplitude"),
figure(2)
Y = abs(fft(squeeze(tones(:,toneChoice))));
subplot(4,4,toneChoice)
plot(Y)
xlabel("Frequency(Hz)");ylabel("Amplitude");legend(symbols)
end
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Discrete Fourier and Cosine Transforms en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

