fs=100;N1=1000;N2=1/fs*N1N3=10t = N3:1/fs:N2+N3x=0.5*exp(-0.05*t).*cos(2*pi*0.5*t-pi/2);plot(x)figure(1)x2=sum(x.^2)/length(x)nosie=x2/27m=0.3*randn(1,length(x))n=sqrt(nosie)*mfigure(2)plot(n)x3=n+xfigure(3)plot(x3)参考: [1] .
本文共 271 字,大约阅读时间需要 1 分钟。
fs=100;N1=1000;N2=1/fs*N1N3=10t = N3:1/fs:N2+N3x=0.5*exp(-0.05*t).*cos(2*pi*0.5*t-pi/2);plot(x)figure(1)x2=sum(x.^2)/length(x)nosie=x2/27m=0.3*randn(1,length(x))n=sqrt(nosie)*mfigure(2)plot(n)x3=n+xfigure(3)plot(x3)参考: [1] .
转载于:https://my.oschina.net/itfanr/blog/195632