fig7_5.m

来自「基于WEB与MATLAB编写的信号处理的源码,书名为"应用WEB和MATLAB的」· M 代码 · 共 14 行

M
14
字号
% Figure 7.5
%
Omega = -pi:2*pi/300:pi;
X = 1./(1+0.5*exp(-j*Omega));
clf
subplot(211),plot(Omega,abs(X))
%  Note, the pi's in the x-axis in the book were added manually.
ylabel('|X|')
xlabel('\Omega')
title('Figure 7.5')
subplot(212),plot(Omega,180*angle(X)/pi)
ylabel('Angle(X), degrees')
xlabel('\Omega')
subplot(111)

⌨️ 快捷键说明

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