Gaussian pulse generator block issue

조회 수: 3 (최근 30일)
ibra01
ibra01 2019년 2월 9일
답변: Cihat Nurettin YILMAZ 2019년 9월 22일
Hello, i'm new in Simulink and I'm using interpreted MATLAB function block to create a gaussian pulse generator.
This is the function:
function y=mono_gauss(t)
fs=20E9; %sample rate-10 times the highest frequency
ts=1/fs; %sample period
t1=.5E-9; %pulse width(0.5 nanoseconds)
x=(t/t1).*(t/t1); %x=(t^2/t1^2)(square of (t/t1);
A=1;
y=(A*(t/t1)-ts).*exp(-x); %first derivative of Gaussian pulse function
end
The problem is that the output of the block generate only one pulse and my objective is to generate a train of pulses just like a pulse generator block.
Any solutions ?

답변 (1개)

Cihat Nurettin YILMAZ
Cihat Nurettin YILMAZ 2019년 9월 22일
You can use "pulstran" function in MATLAB to generate any repetition frequency.

카테고리

Help CenterFile Exchange에서 Waveform Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by