Obtain and compare the magnitude spectrums of Hanning, Hamming and triangular windowed 100 and 110 Hz signals using a 20-ms window for each using MATLAB.
how can i do that?
i did plot 100 hz signal and made fft and saw the peak on 100 Hz. but how can i apply windows.
You simply multiply the time-domain signal by the window before you perform the FFT.
I haven't used matlab in a while, but I believe there is a built in Hanning function (and maybe others?). Even if not, it's pretty easy to generate those windows manually.