What are the frequencies when N in fft(x,N) is odd?
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (1)
Michael scheinfeild
el 10 de Jul. de 2014
if x is ampled at fs you can generate frequency vector use
freqvec=linspace(0,fs,N);
3 comentarios
Ray Lee
el 10 de Jul. de 2014
Honglei Chen
el 10 de Jul. de 2014
This is incorrect. linspace always sample the last one, which you don't want.
CHAN CHEN HUA
el 7 de Oct. de 2021
@Honglei Chen Hi, can i know why last sample should not be taken into?
Categorías
Más información sobre Resizing and Reshaping Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!