Hello. I have to generate a chirp from 3.2 Ghz to 3.5 Ghz with a "duration" of 5 time periods and Fs=50e9. I do not know where and how to start. I tried "help chirp" but i cannot understand how to generate the signal i want.

 Akzeptierte Antwort

Birdman
Birdman am 24 Mär. 2018

0 Stimmen

You mean this?
f0=3.2e9;
f1=3.5e9;
t=0:50e-9:5*50e-9;
t1=t(end);
y = chirp(t,f0,t1,f1);
plot(t,y)

3 Kommentare

Ups yes exactly, correct that please. :)
f0=3.2e9;
f1=3.5e9;
t=0:1/50e9:5*1/50e9;
t1=t(end);
y = chirp(t,f0,t1,f1);
plot(t,y)
Actually, it has something to do with t vector. If you choose it to have 5*period*sample rate, it is not enough. Try this:
f0=3.2e9;
f1=3.5e9;
t=0:1/50e9:50/50e9;
t1=t(end);
y = chirp(t,f0,t1,f1);
plot(t,y)
Rik
Rik am 21 Jun. 2022
Deleted comments:
Dear Birdman, first of all thank you for your time and answer. Secondly, when you generate the time vector ( t ), you're doing " t= 0 : sample_rate : 5 period * sample_rate", correct? I have noticed that in your case, it's not 1/50e9, but 50/1e9 . Please correct me if I'm wrong.
When I ran your code I got the signal in the image and I don't think it should look like that. Could you please help me clarify whether the output is good or wrong?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Gefragt:

am 24 Mär. 2018

Kommentiert:

Rik
am 21 Jun. 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by