> 其他 >
Matlab的一段程序中有这一句“y=x+2*randn(1,length(t))”怎么解释?
程序如下:
t=0:0.001:0.6;
x=sin(2*pi*50*t)+sin(2*pi*120*t);
y=x+2*randn(1,length(t))
plot(y(1:50))
人气:327 ℃ 时间:2020-02-06 12:53:00
解答
y数组等于x数组加上一个随机扰动
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版