Matlab 高斯脉冲对的产生
作者:互联网
当时找了很多关于高斯脉冲对的产生,但是都是关于高斯函数的产生,没有脉冲对。于是在程序上取了巧,直接让它平移相加。
%%参数赋值
a = 0.6; %衰减系数
fs = 100; %抽样频率
Tmin=-5;
Tmax=25;
Delay=2.5; %时延
sigma=1;
variance=sigma^2; %方差
g = 12;
StartTime=3;
%%产生高斯脉冲对
%%直达信号
t = Tmin:1/fs:Tmax;
z = 1/(sqrt(2*pi*variance))*(exp(-(t-StartTime).^2/(2*variance)))+1/(sqrt(2*pi*variance))*(exp(-(t-StartTime-g).^2/(2*variance)));
% z = z.*exp(j*2*pi*(Frequency-BandpassCenterFrequency)*1e6*(t-StartTime-Delay));
subplot(2,1,1)
plot(t,z);
% axis([-Tmax Tmax ]);
%%多径信号
u=a*(1/(sqrt(2*pi*variance))*(exp(-(t-StartTime-Delay).^2/(2*variance)))+1/(sqrt(2*pi*variance))*(exp(-(t-StartTime-g-Delay).^2/(2*variance))));
subplot(2,1,2)
plot(t,u);
标签:StartTime,%%,脉冲,Delay,Matlab,exp,variance,pi,高斯 来源: https://blog.csdn.net/weixin_45429701/article/details/123608605