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

📄 sin_d2.m

📁 经典《信号与系统》教程的matlab例程,对深入理解信号与系统相关概念有很大帮助
💻 M
字号:
% Name: sin_d2.m
clear,close all,
n=-20:20;
x1=cos(0*pi*n/12);
x2=cos(pi*n/8);
x3=cos(pi*n/4);
x4=cos(pi*n/2);
x5=cos(pi*n);
x6=cos(3*pi*n/2);
x7=cos(7*pi*n/4);
x8=cos(15*pi*n/8);
x9=cos(2*pi*n);
subplot(331)
stem(n,x1,'r.'),axis([-20,20,-1.2,1.2])
title('w0=0*pi')
subplot(332)
stem(n,x2,'r.'),axis([-20,20,-1.2,1.2])
title('w0=pi/8')
subplot(333)
stem(n,x3,'r.'),axis([-20,20,-1.2,1.2])
title('w0=pi/4')

subplot(334)
stem(n,x4,'r.'),axis([-20,20,-1.2,1.2])
title('w0=pi/2')
subplot(335)
stem(n,x5,'r.'),axis([-20,20,-1.2,1.2])
title('w0=pi')
subplot(336)
stem(n,x6,'r.'),axis([-20,20,-1.2,1.2])
title('w0=3*pi/2')
subplot(337)
stem(n,x7,'r.'),axis([-20,20,-1.2,1.2])
title('w0=7*pi/4')
xlabel('Time n')
subplot(338)
stem(n,x8,'r.'),axis([-20,20,-1.2,1.2])
title('w0=15*pi/8')
xlabel('Time n')
subplot(339)
stem(n,x9,'r.'),axis([-20,20,-1.2,1.2])
title('w0=2*pi')
xlabel('Time n')

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -