How to Create a Multiple Pulse Signal

조회 수: 15 (최근 30일)
Sage Hayes
Sage Hayes 2020년 2월 6일
댓글: Sage Hayes 2020년 2월 8일
Hi, so I'm working on a project for a Radar Imaging course. I could use some help with creating the initial signal that will later be used to determine doppler shift.
I need to take a single pulse signal x and then create a pulse train from it. The number of pulses in the train is controlled by m.
Here's what I have so far:
%========creating signal===========
y=B/ps; %bandwidth divided by pulse width
thetat=-2*pi*(0.5*B)*ts+pi*B*ts.^2/ps;
x=cos(thetat);
x=x.*envelope;
which creates a signal that looks like standardsignal.jpg
then:
%========create pulse train============
m=5; %number of pulses
M=[0:1:m-1]; %currently unused
Tr=1*10^-6; %1us delay between each pulse
Trs=zeros(1,Tr*Fs); %converts time to the relevant number of 0 valued samples
for c=0:m-1
multisignal=[x Trs]; %adds the zeros array to the existing
end
I realized after running it that the for loop will only add the zeros array to the signal once and I'm not sure how to make it recursive as to implement: x+zeros+x+zeros+ [...]
Any help would be greatly appreciated!

채택된 답변

Renato SL
Renato SL 2020년 2월 7일
I think you can do something like this for the loop part
multisignal = []; %initialize an empty array to contain the final multisignal
for c=0:m-1
multisignal=[multisignal x Trs]; %adds the x-signal & zeros array to the existing multisignal (from previous step) to create the pulse train
end
  댓글 수: 1
Sage Hayes
Sage Hayes 2020년 2월 8일
Yes, Yes! That works, didn't know you could through in more than two terms to that, thank you so much!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Pulsed Waveforms에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by