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 as
for n=1:N
hamming(n)=0.54+0.46*cos((2*n-N+1)*pi/N);
end;
where
N is the data length in the FFT.
标签:
matlab fft
上传时间:
2015-11-23
上传用户:石灰岩123