Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

plot fourier transform

Status
Not open for further replies.

aidana

Newbie level 1
Joined
Jun 20, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,288
i have this equation with 4 frequencies as 5,10,520,50 : x=cos(2*pi*5*t)+ cos(2*pi*10*t)+ cos(2*pi*20*t)+ cos(2*pi*50*t), i want plot this,but i don't know,which zone i should use, to see all 4 frequencies and how can i plot this in an appropriate time zone?
using try and error method i find that t=(0:.001:1) is appropriate... then using fft(x) i found the fourier transform of it,now i want plot the fft but i cant,plz help me.....
 

_Eduardo_

Full Member level 5
Joined
Aug 31, 2009
Messages
295
Helped
118
Reputation
238
Reaction score
103
Trophy points
1,323
Location
Argentina
Activity points
2,883
5 periods are 1", but to evaluate the fft from samples of 0.001" , the interval must be t=(0:0.001:0.999)

Or better, use 1 period range --> t = (0:0.001:0.199);

t=(0:.001:.199) ; x=cos(2*pi*5*t)+cos(2*pi*10*t)+cos(2*pi*20*t)+cos(2*pi*50*t) ; y=fft(x) ; plot(real(y),'.')
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top