fft spectral analysis in mat lab

Status
Not open for further replies.

suryakiran

Newbie level 1
Joined
Feb 15, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,285
I am new to mat lab i had the signal and have to write the code for it
and i want peak values in a diagram
please help me...
 

Hi,

Set the range for 'n' (as we are in discrete time domain), say n = [0:100]
Compute values for the given signal x[n] in the above taken range.

For spectral analysis, compute fft using fft(signal, N) and plot the abs value to get magnitude spectrum.
Let me know if you need the code.
 

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