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..
 

plz help

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

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/Fstf/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;
figure
plot(z);
 

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