From: Luis Roldan on 26 Apr 2010 11:04 Hi. In the example on how to use fft, once they have the signal, they do this: NFFT = 2^nextpow2(L); % Next power of 2 from length of y Y = fft(y,NFFT)/L; Meaning that they get the next power of 2 from length of y (the signal), and then they calculate the NFFT-points fft, to then divide it by L (length of y). ¿Can you tell me why they do that? What I'm trying to do is capture a sound signal and then with the fft get the frequency of that signal. Thank you!
|
Pages: 1 Prev: data aquisition delay Next: Interaction of MEX and MATLAB or mexCallMATLAB and Co. |