Two examples of frequency manipulation

Fourier Analysis



Here we will use the Fast Fourier Transform (FFT) to analysis the frequency components of the signal. But first you will write a function

function MinesMagPlotFFT(Y,Fs)

that will display the magnitude of the FFT of the signal Y sampled at the frequency Fs, with the x-axis labeled in Hz (assuming Fs is in Hertz). To do so, look at the online help on the FFT function in Matlab and take inspiration from the example provided there. It is very helpful.

You will need the following Matlab functions (see the online help): length, floor, linspace, abs, plot, title, xlabel, ylabel axis