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

    %% Compute Frequency-Limited Gramian
% Compute the controllability Gramian of the following state-space model.
% Focus the computation on the frequency interval with the most energy.
%%
sys = ss([-.1 -1;1 0],[1;0],[0 1],0);
%%
% The model contains a peak at 1 rad/s. Use |gramOptions| to specify an
% interval around that frequency.
opt = gramOptions('FreqIntervals',[0.8 1.2]);
gc = gram(sys,'c',opt)