Introduction - If you have any usage issues, please Google them yourself
routine to take the Fourier transform of a signal and plot both the time and frequency domain representations. Typical use:
>> n = 100 number of data points
>> dt = 0.01 spacing between samples
>> t = 0:dt:(n-1)*dt time vector
>> y = sin(2*pi*10*t) 10 Hz sin wave
>> fft_plot(y,dt) plot of signal in time and frequency domain