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.

Calculate and plot with Matlab a frequency sweep

Status
Not open for further replies.

silverit

Newbie level 4
Joined
Jun 19, 2009
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,314
frequency sweep matlab

Hi all,

I have a problem..I have a discrete sine with 20000 sample and with variable frequency.
I need to plot this freq sweep, I expect a frequency ramp.

How I can do this with Matlab?

Please someone help me?

Thanks
 

sweep matlab

I have written some code, Hope this will work

clc
clear all

fs=40000;
t=(1:20000)/fs;
for f=1:20000
data(f)=sin(2*pi*f*t(f));
end

plot(data(1:2000))

It can be plotted well if u have given the frequency ranges, and the sampling frequency, any how u can change it ur self in the code
 

calculate frequency matlab

Hi,

thanks fo your support. But maybe that I explained bad.
I have a file the present the sample amplitude of the sine(trought LUT), I have attached this file.I want create a plot where in x there is a time, and in y there is a frequency. In this way i create a frequency ramp.
The sampling frequency is 400MHz

See attach for understand the concept.

Regards
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top