Beginners: please read this post and this post before posting to the forum.
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)]);
Started by jlipstate
Started by Sula
Started by RoboManiacz
Mechanics and Construction
Started by Cradboard