gram.m
来自「数字通信第四版原书的例程」· M 代码 · 共 21 行
M
21 行
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 + =
减小字号Ctrl + -
显示快捷键?