The state-space model ss can be given as StateSpaceModel, where a, b, c, and d represent the state, input, output, and transmission matrices in either a continuous-time or a discrete-time system:
continuous-time system
discrete-time system
The observability Gramian:
continuous-time system
discrete-time system
For asymptotically stable systems, the Gramian can be computed as the solution of a Lyapunov equation:
continuous-time system
discrete-time system
The observability Gramian is computed as the controllability Gramian of the dual system.