What are the frequencies when N in fft(x,N) is odd?
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (1)
Michael scheinfeild
le 10 Juil 2014
if x is ampled at fs you can generate frequency vector use
freqvec=linspace(0,fs,N);
3 commentaires
Ray Lee
le 10 Juil 2014
Honglei Chen
le 10 Juil 2014
This is incorrect. linspace always sample the last one, which you don't want.
CHAN CHEN HUA
le 7 Oct 2021
@Honglei Chen Hi, can i know why last sample should not be taken into?
Catégories
En savoir plus sur Resizing and Reshaping Matrices 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!