📄 gram.m
字号:
function g = gram(a,b)
%GRAM Controllability and observability gramians.
% GRAM(A,B) returns the controllability gramian:
%
% Gc = integral {exp(tA)BB'exp(tA')} dt
%
% GRAM(A',C') returns the observability gramian:
%
% Go = integral {exp(tA')C'Cexp(tA)} dt
%
% See also DGRAM, CTRB and OBSV.
% J.N. Little 3-6-86
% Copyright (c) 1986-93 by the MathWorks, Inc.
% Laub, A., "Computation of Balancing Transformations", Proc. JACC
% Vol.1, paper FA8-E, 1980.
[u,s,v] = svd(b);
g = u*lyap(u'*a*u,s*s')*u';
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -