How to Create a Multiple Pulse Signal

13 ビュー (過去 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 Center および File ExchangeMatrix Indexing についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by