How do i repeat an already generated gaussian pulse signal for a certain number of times?
4 次查看(过去 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!