www.gusucode.com > control 案例程序 matlab源码代码 > control/PeakGainofTransferFunctionExample.m

    %% Peak Gain of Transfer Function  
% Compute the peak gain of the resonance in the following transfer
% function:
% 
% $$sys = {{90} \over {{s^2} + 1.5s + 90}}.$$
% 

%%  
sys = tf(90,[1,1.5,90]);
gpeak = getPeakGain(sys)

%%
% The |getPeakGain| command returns the peak gain in absolute units.