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

📄 ms3r3.m

📁 《数字信号处理实验(MATLAB版)》这
💻 M
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -