Use
the fast Fourier transform function fft to analyse following signal. Plot the original signal, and the magnitude of its
spectrum linearly and logarithmically. Apply Hamming window to reduce the
leakage.
.
The hamming window can be coded in Matlab ...