How to Create a Multiple Pulse Signal

20 views (last 30 days)
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!

Accepted Answer

Renato SL
Renato SL on 7 Feb 2020
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 Comment
Sage Hayes
Sage Hayes on 8 Feb 2020
Yes, Yes! That works, didn't know you could through in more than two terms to that, thank you so much!

Sign in to comment.

More Answers (0)

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!