How do i repeat an already generated gaussian pulse signal for a certain number of times?
4 ビュー (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/192475/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/192476/image.png)
I have attached a part of the simulink model and code through which the gaussian pulse is being generated and also the image of scope after the bpsk transmitter. I want to generate more gaussian pulses periodically. So instead of just a single pulse in the scope maybe 4-5 (or any number of pulses).
This is the code i've used to generate the gaussian pulse.
function y = fcn(t,A)
%#codegen
t1=.5E-10;%pulse width(0.5 nanoseconds)
x=(t/t1)*(t/t1);%x=(t^2/t1^2)(square of (t/t1)
%A=1;%positive value gives negative going monopulse;neg value gives %positive going monopulse
y=A*(1/(sqrt(6.28)*t1))*(1-x).*exp(.5*(-x));
I tried using the math function(mod) so that the signal can be repeated but was unsuccessful.
0 件のコメント
回答 (1 件)
Giridharan Kumaravelu
2018 年 7 月 24 日
If you are using a code in the Simulink, you could try the repmat() function.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Pulsed Waveforms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!