?? add_noise.m
字號:
function y = add_noise(x,std,rc)% add_noise -- add white, guassian noise to a signal% % Usage% y = add_noise(x, std, rc)%% Inputs% x signal% std standard deviation of the noise (real and/or imaginary parts)% rc 'real' or 'complex' specifies real or complex noise (optional,% default is 'complex')%% Outputs% y signal with noise% Copyright (C) -- see DiscreteTFDs/Copyrighterror(nargchk(2,3,nargin));if (nargin<3) rc = 'complex';endif (rc(1) == 'r') y = x + std*randn(size(x));else y = x + std*(randn(size(x)) + i*randn(size(x)));end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -