ms3r3.m
来自「《数字信号处理实验(MATLAB版)》这」· M 代码 · 共 28 行
M
28 行
n=0:20;
x=n.*sin(n);
y1=(n-3).*sin(n-3);
n2=-fliplr(n);
y2=fliplr(x);
y3=-x;
y4=(-n+2).*sin(-n+3);
y5=(n/2).*sin(n/2);
figure(1);
subplot(3,1,1),stem(n,x,'filled');
title('x(n)');
subplot(3,1,2),stem(n,y1,'filled');
title('y1(n)');
axis([0,20,-20,20]);
subplot(3,1,3),stem(n2,y2,'filled');
title('y2(n)');
figure(2)
subplot(2,2,1),stem(n,x,'filled');
title('x(n)');
subplot(2,2,2),stem(n,y3,'filled');
title('y3(n)');
subplot(2,2,3),stem(n,y4,'filled');
title('y4(n)');
subplot(2,2,4),stem(n,y5,'filled');
title('y5(n)');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?