How to Create a Multiple Pulse Signal
13 views (last 30 days)
Show older comments
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!
0 Comments
Accepted Answer
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
More Answers (0)
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!