【发布时间】:2019-02-09 18:35:43
【问题描述】:
我是 Simulink 新手,我正在使用解释型 MATLAB 功能块来创建高斯脉冲发生器。
这是函数:
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 pulsefunction
end
问题是模块的输出只生成一个脉冲,而我的目标是生成一串脉冲,就像脉冲发生器模块一样。 有什么解决办法吗?
【问题讨论】:
标签: matlab signal-processing simulink