how to create copies of chirp signal?

hello. how can i create 32 copies of bidirectional chirp signal in matlab??? for example for this code; how can i create 32 copies?? t1=1; f0=0; f1=100; t=0:0.001:0.999; y=chirp(t,f0,t1,f1,'linear'); Y=[y y(end:-1:1)];
plot(0:0.001:1.999,Y)

 Akzeptierte Antwort

Mathieu NOE
Mathieu NOE am 14 Jun. 2021

0 Stimmen

hello
i modified a bit your code and expanded it
hope it helps
t1=1;
f0=0;
f1=100;
samples = 1000;
dt = 1e-3;
t=(0:samples-1)*dt;
y=chirp(t,f0,t1,f1,'linear');
Y=[y y(end:-1:1)]; % single waveform
figure(1);
t=(0:2*samples-1)*dt;
plot(t,Y)
% 32 waveforms
N = 32;
YY = repmat(Y,1,N);
figure(2);
t=(0:length(YY)-1)*dt;
plot(t,YY)

5 Kommentare

majid
majid am 16 Jun. 2021
excuse me again! I have another question! how can we insert delay to this signal? for example 0.5 second!
Mathieu NOE
Mathieu NOE am 16 Jun. 2021
hello
you mean you would like to insert zeros during 0.5 s at the beginning of the signal ?
majid
majid am 17 Jun. 2021
hello
suppose we transmit bidirectional chirp signal in the medium then, we recieved it by a detector.
because of this propagation such a signal will be shifted in time by the relation Time=Distance/speed .
I want to do this work.
hello
you can simply add or retrieve a time offset to the time vector computed in first place :
t=(0:samples-1)*dt + offset;
majid
majid am 17 Jun. 2021
thanks!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

majid
majid am 15 Jun. 2021

0 Stimmen

thank you very much, Mathieu.

Gefragt:

am 14 Jun. 2021

Kommentiert:

am 17 Jun. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by