对于固定位置的干扰(比如带内的单音干扰),可以采用当前的值减去统计出来的平均值。 clear close all a=randn(10^4,1024); a_rmv_dc=zeros(10^4,1024); for cntx=1:10^4 for cnty=1:1024 if(mod(cnty,128) == 0) &n ...
热噪声由于其随机和不相关的特性,在时域中累加无法将其加强;脉冲信号由于相关性,即使低于热噪声,也可以通过长时间的累加,将其加强; clear close all a=randn(10^4,1024); for cntx=1:10^4 for cnty=1:1024 if(mod(cnty,128) == 0) ...
clear close all f=100; theta0=pi/6; theta1=pi/4; t=0:0.001:1; y0=exp(j*(f*t+theta0)); y1=exp(j*(f*t+theta1)); plot(t,y0,'r') hold on plot(t,y1,'b') y1_1=conj(y1); yy=y0.*y1_1; y_s=mean(yy); phase_delta=angle(y_s)*180/pi
%将一组数据设置在某个范围之内 close a=round(100*randn(2048,1)); b=max(min(a,127),-128); plot(a) hold on plot(b,'r') hold on plot( ,127,'black','linewidth',5) hold on plot( ,-128,'black','linewidth',5)