Join us in Chat. Click link in menu bar to join. Unofficial chat day is every Friday night (US time).

0 Members and 1 Guest are viewing this topic.

%fftmaker returns!function fftMag = fftmaker(data,Ts)%takes in an array of data and a sampling time Ts, and plots the FFT of the%dataFs = 1/Ts; %sampling frequencyL = length(data);NFFT = 2^nextpow2(L);fftMag = fft(data,NFFT)/L;freqs = Fs/2*linspace(0,1,NFFT/2);%now plot'tplot(freqs,2*abs(fftMag(1:NFFT/2)));title(['FFT of Data, Sampling Time = ', num2str(Ts)]);