필터 지우기
필터 지우기

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.

답변 (1개)

Giridharan Kumaravelu
Giridharan Kumaravelu 2018년 7월 24일
If you are using a code in the Simulink, you could try the repmat() function.

카테고리

Help CenterFile Exchange에서 Pulsed Waveforms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by