📄 addnoise.m
字号:
function [n]=AddNoise()
global x;
%Original Signal
global y;
%Noisy Signal
if (isempty(x)) n = [];
return;
end
y = x + 2*randn(size(x));
%add some noise
subplot(211)
plot(y(1:50))
title('Signal Corrupted with Zero-Mean Random Noise')
xlabel('time (milliseconds)')
n=y;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -