필터 지우기
필터 지우기

how to create copies of chirp signal?

조회 수: 4 (최근 30일)
majid
majid 2021년 6월 14일
댓글: majid 2021년 6월 17일
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)

채택된 답변

Mathieu NOE
Mathieu NOE 2021년 6월 14일
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
Mathieu NOE
Mathieu NOE 2021년 6월 17일
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 2021년 6월 17일
thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

majid
majid 2021년 6월 15일
thank you very much, Mathieu.

카테고리

Help CenterFile Exchange에서 Waveform Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by