What are the frequencies when N in fft(x,N) is odd?
Mostra commenti meno recenti
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?
Risposta accettata
Più risposte (1)
Michael scheinfeild
il 10 Lug 2014
if x is ampled at fs you can generate frequency vector use
freqvec=linspace(0,fs,N);
3 Commenti
Ray Lee
il 10 Lug 2014
Honglei Chen
il 10 Lug 2014
This is incorrect. linspace always sample the last one, which you don't want.
CHAN CHEN HUA
il 7 Ott 2021
@Honglei Chen Hi, can i know why last sample should not be taken into?
Categorie
Scopri di più su Resizing and Reshaping Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!