What are the frequencies when N in fft(x,N) is odd?
Show older comments
I know when N is even, fft(x,N) corresponds to frequencies 0,df,...,N/2*df,-(N/2-2)*df,...,-df.
What about if N is odd?
Accepted Answer
More Answers (1)
Michael scheinfeild
on 10 Jul 2014
if x is ampled at fs you can generate frequency vector use
freqvec=linspace(0,fs,N);
3 Comments
Ray Lee
on 10 Jul 2014
Honglei Chen
on 10 Jul 2014
This is incorrect. linspace always sample the last one, which you don't want.
CHAN CHEN HUA
on 7 Oct 2021
@Honglei Chen Hi, can i know why last sample should not be taken into?
Categories
Find more on Resizing and Reshaping Matrices 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!