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.

How to generate up chirp and down chirp signal in Matlab?

Status
Not open for further replies.

electroon

Newbie level 6
Joined
Jan 6, 2006
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,392
hi
iam engineering fianl year student please help me in my project
i want to generate upchirp and down chirp signal in matlab without using inbuilt matlab function "chirp" i want to write the code to do that can anyone help me please..
 

echo47

Advanced Member level 5
Joined
Apr 7, 2002
Messages
3,942
Helped
638
Reputation
1,274
Reaction score
89
Trophy points
1,328
Location
USA
Activity points
33,176
plz help

Search your MATLAB installation directory for file chirp.m. It contains the source code of the chirp function.
 

Vamsi Varma

Newbie level 1
Joined
Jul 25, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
5
hi
iam engineering fianl year student please help me in my project
i want to generate upchirp and down chirp signal in matlab without using inbuilt matlab function "chirp" i want to write the code to do that can anyone help me please..

Fs=1000; % sample rate
tf=2; % 2 seconds
t=0:1/Fs:tf-1/Fs;
f1=100;
f2=400; % start @ 100 Hz, go up to 400Hz
semi_t=0:1/Fs:(tf/2-1/Fs);
sl=2*(f2-f1/2);
f1=f1*semi_t+(sl.*semi_t/2);
f2=f1(end)+f2*semi_t-sl.*semi_t/2;
f=[f1 f2];
y=1.33*cos(2*pi*f.*t);
figure
plot(t,y);
z=fft(y);
figure
plot(z);
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top