Continue to Site

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.

Program for generating a FFT in Matlab

Status
Not open for further replies.

issofa

Newbie level 6
Newbie level 6
Joined
Jun 2, 2010
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Germany
Activity points
1,366
Hello there.

Please guys can someone help me with a small program in matlab to generate a frequency domain signal like the one in the attachment? I mean having some line signal.

Many Thanks.
 

Generating a fft

After calculating the fft, you can plot it using "stem".
 

Re: Generating a fft

Hi,

Many thanks Paulus I have used the stemm command as u said but I have this circle at the end of the line is there anyway to remove them so that I can only have a straight line?

u can have a look on my attachment

Many thanks
 

Generating a fft

you can use "stem(x,y,'.')", instead of the circle you will get a little dot...
 

Re: Generating a fft

Thanks again.

I have been able to get the dot with the line u have suggested. Another problem I'm facing is to get the amplitude in dB I have used 'semilogy' but it doesn't seem to be working is there any other option?

Many thanks.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top