The Wayback Machine - https://web.archive.org/web/20120219025315/http://www.mathworks.com:80/help/toolbox/control/ref/obsv.html
Skip to Main Content Skip to Search
Product Documentation

obsv - Observability matrix

Syntax

Ob = obsv(sys)

Description

obsv computes the observability matrix for state-space systems. For an n-by-n matrix A and a p-by-n matrix C, obsv(A,C) returns the observability matrix

with n columns and np rows.

Ob = obsv(sys) calculates the observability matrix of the state-space model sys. This syntax is equivalent to executing

Ob = obsv(sys.A,sys.C)

The model is observable if Ob has full rank n.

Examples

Determine if the pair

A =
     1     1
     4    -2

C =
     1     0
     0     1

is observable. Type

Ob = obsv(A,C);

% Number of unobservable states
unob = length(A)-rank(Ob)

These commands produce the following result.

unob =
     0

Tips

obsv is here for educational purposes and is not recommended for serious control design. Computing the rank of the observability matrix is not recommended for observability testing. Ob will be numerically singular for most systems with more than a handful of states. This fact is well documented in the control literature. For example, see section III in http://lawww.epfl.ch/webdav/site/la/users/105941/public/NumCompCtrl.pdf

See Also

obsvf

  


Free Control Systems Interactive Kit

Learn more about resources for designing, testing, and implementing control systems.

Get free kit

Trials Available

Try the latest control systems products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS