How to Create a Multiple Pulse Signal

12 次查看(过去 30 天)
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 中查找有关 Matrix Indexing 的更多信息

标签

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by