How can I create a train chirp pulse?

18 ビュー (過去 30 日間)
arina octave
arina octave 2015 年 1 月 27 日
コメント済み: arina octave 2015 年 1 月 30 日
hi, i am trying to create a train of chirp pulse. i use the chirp and train function but i have no idea how to make it right. here is my code :
fs = 1e3; % sample freq 1kHz
D = 0 : 1/fs : 2; % pulse delay times
t = 0 : 1/fs : 20; % signal evaluation time
w = 1e3; % width of each pulse
x = chirp(t,1,1,10);
yp = pulstran(t,D,x,w);
plot(t,yp)
thank you.

採用された回答

Youssef  Khmou
Youssef Khmou 2015 年 1 月 27 日
That is an interesting problem, before trying to use pulstran function, create a linear frequency function and use square function as follows :
fs = 1e3; % sample freq 1kHz
D = 0 : 1/fs : 2; % pulse delay times
t = 0 : 1/fs : 20; % signal evaluation time
f1=1;
f2=10;
a=(f2-f1)/(t(end)-t(1));
f=f1+a*t;
x=square(2*pi*f.*t);
figure; plot(t,x);
axis([0 20 -2 2]);
title('Train chirp pulse');
  1 件のコメント
arina octave
arina octave 2015 年 1 月 30 日
thank you for kindly answer my question

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWaveform Generation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by