How do i repeat an already generated gaussian pulse signal for a certain number of times?
6 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!