New lower price for Axon II ($78) and Axon Mote ($58).

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)]);