📄 gaussnoise.m
字号:
function y=gaussnoise(m,q,N);
%GAUSSNOISE(m,q,N) generate the N length gause distribution noise,
%with the mean m and the std q.
randn('state', sum(100*clock)); %initialize the state of randn
y=randn(N,1);
y=y/std(y); %normalize to unit std value.
y=y-mean(y); %shift to 0 mean value
y=m+q*y; %generate (m,q) gauss noise with length N
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -