?? 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 + -