how to get frequency of a discrete signal by using fft in matlab
Show older comments
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!!!
Accepted Answer
More Answers (1)
Wayne King
on 18 May 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.
Categories
Find more on Spectral Measurements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!