What are the frequencies when N in fft(x,N) is odd?
Ältere Kommentare anzeigen
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?
Akzeptierte Antwort
Weitere Antworten (1)
Michael scheinfeild
am 10 Jul. 2014
if x is ampled at fs you can generate frequency vector use
freqvec=linspace(0,fs,N);
3 Kommentare
Ray Lee
am 10 Jul. 2014
Honglei Chen
am 10 Jul. 2014
This is incorrect. linspace always sample the last one, which you don't want.
CHAN CHEN HUA
am 7 Okt. 2021
@Honglei Chen Hi, can i know why last sample should not be taken into?
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!