MATLAB - obtaining magnitude spectrums

Status
Not open for further replies.

maddoxbey

Newbie
Joined
Apr 21, 2012
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,285
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.

please someone help me. i am in deep. :/
 

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.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…