?? s10fig9a.m
字號:
% fig 10.9a Bode Plots
%
fmin = 0; % min freq (in Hz) to view
fmax = .5; % max freq (in Hz) to view
df=0.01; % step size
f=fmin:df:fmax; % frequency vector
w = 2*pi*f; % radian freq vector
s = w*i; %
N= s.*s + 1; % numerator of transfer fn
D = s.*s + s + 1; % denominator
H= N./D; % transfer fn
r = abs(H); % gain at freq w
phi = angle(H); % phase lead
plot(f,r,'k-') % gain vs freq in Hz
% replace with plot(f,phi) for phase plot
% replace with plot(f,20*log10(r)) for decibels
% replace with plot(w,r) for gain vs radian freq
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -