How do I increase the space between trains in this periodic waveform
1 回表示 (過去 30 日間)
古いコメントを表示
Michael Bernard
2013 年 12 月 8 日
コメント済み: Azzi Abdelmalek
2013 年 12 月 9 日
Hi Friends I am interested in the pulstran function below:
t = 0 : 1/50E3 : 10e-3;
d = [0 : 1/1E3 : 10e-3 ; 0.8.^(0:10)]';
y = pulstran(t,d,'gauspuls',10e3,0.5);
plot(t,y)
I need to now what to do to increase the space or distance between each train in the waveform. Someone pls help urgently.
Thanks in advance
0 件のコメント
採用された回答
Azzi Abdelmalek
2013 年 12 月 8 日
編集済み: Azzi Abdelmalek
2013 年 12 月 8 日
t = 0 : 1/50E3 : 10e-3;
spac=3e-3
spac_vect=0 : spac : 10e-3 % vector of delays
amp_vect=0.8.^(0:numel(spac_vect)-1) % vector of amplitudes
d = [spac_vect;amp_vect]';
y = pulstran(t,d,'gauspuls',10e3,0.5);
plot(t,y)
2 件のコメント
Azzi Abdelmalek
2013 年 12 月 9 日
Michael, In the comments of the above code, I've explained that amp_vect corresponds to your pulses amplitudes
t = 0 : 1/50E3 : 10e-3;
spac=3e-3
Amp=10
spac_vect=0 : spac : 10e-3 % vector of delays
amp_vect=Amp*ones(1,numel(spac_vect)) % vector of amplitudes
d = [spac_vect;amp_vect]';
y = pulstran(t,d,'gauspuls',10e3,0.5);
plot(t,y)
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!