That is an interesting problem, before trying to use pulstran function, create a linear frequency function and use square function as follows :
fs = 1e3;
D = 0 : 1/fs : 2;
t = 0 : 1/fs : 20;
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');
댓글 수: 0
로그인 to comment.