Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.

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