对称偏移高斯脉冲

Symmetric shifted gaussian pulse

考虑这个简短的代码:

fc=2e9;
fs = 100e9;
for n=1:2
  tc = gmonopuls('cutoff',fc);
  t{n}  = -2*tc:1/fs:2*tc;
  y{n} = gmonopuls(t{n}+n*5e-11,fc);
  fc=fc+5e3;
end
plot(t{1},y{1},'r',t{2},y{2},'k')

它生成两个高斯 mono-pulses 稍微偏移:

我的问题是:如何使它对称?注意尾巴是如何匹配的……它们对于红色和黑色脉冲都是零。我是 matlab 中信号处理工具箱的新手,想修改下面的代码也有 匹配的头

gmonopuls 计算以 0 为中心的高斯脉冲:

t = -2*tc:1/fs:2*tc;
y = gmonopuls(t,fc);
plot(t, y, 'k');

在不同时刻评估此函数不会改变曲线的基本形状。它只会改变您采样的曲线部分:

K = 2*tc;
for n=1:3
  t{n} = -2*tc:1/fs:2*tc + (n-2)*K;
  y{n} = gmonopuls(t{n},fc);
end
plot(t{1},y{1},'rx', t{2},y{2},'k', t{3},y{3},'bs');
legend('t-K','t','t+K');

要获得沿时间轴移动的曲线,您只需在计算函数后添加时间偏移量

for n=1:2
  tc = gmonopuls('cutoff',fc);
  t{n} = -2*tc:1/fs:2*tc;
  y{n} = gmonopuls(t{n},fc);
  t{n} = t{n} - n*5e-11;
  fc=fc+5e3;
end
plot(t{1},y{1},'r',t{2},y{2},'k')