📄 example_awgn.m
字号:
% Name:example_awgn.m
% Additive white Gaussian noise
close all,clear,
t=0:0.01:10;
x=sin(pi*t);
y=awgn(x,5);
subplot(211)
plot(t,x)
title('The original signal x(t)')
axis([0,10,-2,2])
subplot(212)
plot(t,y)
title('The output signal y(t)')
xlabel('Time t')
axis([0,10,-2,2])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -