📄 fig7_2.m
字号:
% Figure 7.2
Omega = -pi:2*pi/300:pi;
a = 0.5;
X = (1-a*cos(Omega)-j*a*sin(Omega))./(1-2*a*cos(Omega)+a^2);
clf
subplot(211),plot(Omega,abs(X));
title('Figure 7.2')
xlabel('\Omega') % uses greek characters
ylabel('|X|')
subplot(212),plot(Omega,angle(X)*180/pi);
xlabel('\Omega')
ylabel('Angle(X), degrees')
subplot(111)
% figures in text were plotted using
% plot(Omega/pi,abs(X)) and plot(Omega/pi,angle(X)*180/pi)
% and the pi's in the axis labels were added by hand
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -