The Matlab FFT code: y = data; Fs = 2048; [r, L] = size(y); NFFT = 2^nextpow2(L); % Next power of 2 from ...
stackoverflow.com