| Control System Toolbox | Search  Help Desk |
| gram | See Also |
Compute controllability and observability gramians
Syntax
Wc = gram(sys,'c') Wo = gram(sys,'o')
Description
gram
calculates controllability and observability gramians. You can use gramians to study the controllability and observability properties of state-space models and for model reduction [1,2]. They have better numerical properties than the controllability and observability matrices formed by ctrb and obsv.
Given the continuous-time state-space model
The discrete-time counterparts are
is controllable. Similarly, the observability gramian is positive definite if and only if
is observable.
Use the commands
Wc = gram(sys,'c') % controllability gramian Wo = gram(sys,'o') % observability gramianto compute the gramians of a continuous or discrete system. The LTI model
sys must be in state-space form.
Algorithm
The controllability gramian
is obtained by solving the continuous-time Lyapunov equation
solves the Lyapunov equation
Limitations
The
matrix must be stable (all eigenvalues have negative real part in continuous time, and magnitude strictly less than one in discrete time).
See Also
balreal Gramian-based balancing of state-space realizations
ctrbControllability matrix
lyap, dlyapLyapunov equation solvers
obsvObservability matrix
References
[1] Kailath, T., Linear Systems, Prentice-Hall, 1980.