⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 add_noise.m

📁 本程序包是信号处理中关于时频分析的部分
💻 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 + -