how to get frequency of a discrete signal by using fft in matlab
Afficher commentaires plus anciens
i want to find the frequency of a discrete signal using matlab and also want to apply a bandpass filter to that spectrum how can i do that pls help me out guys!!!
Réponse acceptée
Plus de réponses (1)
Wayne King
le 18 Mai 2012
1 vote
You don't have to do fftshift() to get the real spectrum. fftshift just puts 0 in the center with "negative" frequencies to the left and "positive" frequencies to the right. That is convenient in many applications, but not necessary.
If the signal is real-valued (not complex-valued), then a symmetry will exist between the two halfs of the Fourier transform. Therefore, in order to identify the peak frequency, you only need to work with 1/2 of the result.
Catégories
En savoir plus sur Spectral Measurements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!