1. 程式人生 > >產生均值為0,方差為0.1服從高斯分…

產生均值為0,方差為0.1服從高斯分…


clear;
u=randn(1,50000);
u=u*sqrt(0.1);
power_u=var(u);
subplot(211)
plot(u(1:200));
grid on
xlabel('n')
ylabel('x(n)')
subplot(212)
hist(u,50);
grid on
ylabel('histogram of u(n)');

產生均值為0,方差為0.1服從高斯分佈的白噪聲