Question 1
I have a signal x
with sampling frequency 1000
.
I want to do X = fft(x,nfft);
in Matlab. The question is I don't know how to find the value of nfft. I saw that one may calculate the nfft by nfft = 2^nextpow2(length(x));
But I don't know the meaning of it, anyone can explain it?
Question 2
I have a signal x
with sampling frequency 1000
.
I want to add a rectangular window this time and then do the fft.
Such as X = fft(x(1:200),nfft);
in Matlab.
Suppose I know how to calculate the nfft this time, but I want to ask that what is the relationship between the window size and the X.
For example, if I have a big window, how will it change the X?
If I have a small window, how will it change the X?