Clear Filters
Clear Filters

How do i repeat an already generated gaussian pulse signal for a certain number of times?

4 views (last 30 days)
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.

Answers (1)

Giridharan Kumaravelu
Giridharan Kumaravelu on 24 Jul 2018
If you are using a code in the Simulink, you could try the repmat() function.

Community Treasure Hunt

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

Start Hunting!