define frequency of signal from fft output
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ngoc Lam
le 29 Sep 2014
Commenté : YAMASANI MANOJ REDDY
le 21 Août 2018
what is the relationship between the sampling frequency Fs and frequency of signal of FFT function in matlab? assUme that, we have a signal with spectrum as follow picture. with Fs= 44.1Khz, I know that X-axis is not the frequecy of signal, right? How to define the frequency of this signal with followed spectrum? for example, at the point X-axis = 10000, with Fs= 44.1Khz, how to define frequency of signal at that point?
0 commentaires
Réponse acceptée
Plus de réponses (4)
Ngoc Lam
le 30 Sep 2014
Modifié(e) : Ngoc Lam
le 30 Sep 2014
1 commentaire
Rick Rosson
le 30 Sep 2014
The sampling rate in your code is
Fs = 500/(4*pi);
which is approximately 40 samples per second. By the Nyquist Sampling Theorem, the maximum frequency that you can represent without aliasing is Fs/2 or approx 20 Hertz. Your signal, however, contains components at 50 Hertz and 100 Hertz, which are well above the maximum.
Rick Rosson
le 30 Sep 2014
Please try:
Fs = 1000;
dt = 1/Fs;
N = 12000;
t = dt*(0:N-1)';
x = sin(100*pi*t) + 2*cos(200*pi*t);
X = fftshift(fft(x))/N;
dF = Fs/N;
f = -Fs/2:dF:Fs/2-dF;
plot(f,abs(X));
1 commentaire
Syed Masoud Shah kakakhel
le 23 Mar 2017
Modifié(e) : Syed Masoud Shah kakakhel
le 23 Mar 2017
kindly @Rick Rosson can u comment...variables like what is N?? kindly will be more helpful..m waiting for response
Voir également
Catégories
En savoir plus sur Fourier Analysis and Filtering dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!