FUNCTION REFERENCE
gram
Controllability or observability gramian of a stable LTI model.
Controllability or observability gramian of a stable LTI model.
Syntax
Wc = gram(sys,'c')Syntax
Wo = gram(sys,'o')gram(sys,'c') solves A*Wc + Wc*A' + B*B' = 0 (continuous) or A*Wc*A' - Wc + B*B' = 0 (discrete); gram(sys,'o') solves the dual equations with A' and C'*C. tf and zpk models are realized as ss first. The result is symmetrized. Every pole must be strictly stable (Re(p) < 0, or abs(p) < 1 for discrete models); otherwise gram reports an error.
Example
W = gram(ss([-1 0;1 -2],[1;0],[0 1],0),'c')Example
W = gram(ss([0.5 0.1;0 -0.3],[1;1],[1 0],0,0.1),'o')Differences from MATLAB: the Cholesky factor types 'cf' and 'of', model arrays and descriptor models are not supported yet.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.