<< nyquist Control System functions obsvf >>

obsv


Observability of state-space model.


Syntax


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

Input argument


sys

State-space model

A

State matrix: Nx-by-Nx matrix

C

State-to-output matrix: Ny-by-Nx matrix

Output argument


Ob

Observability matrix.

Description


The obsv functionis designed to calculate the observability matrix for state-space systems.

Given an Nx-by-Nx matrix A representing the system dynamics and a Ny-by-Nx matrix C specifying the output, the function call obsv(A, C) generates the observability matrix.

It is advised against using the rank of the observability matrix for testing observability due to numerical instability.

The observability matrix Ob tends to be numerically singular for systems with more than a few states, making the rank-based approach unreliable for such cases.

Example


% Define the system matrices
A = [1 2; 3 4];
C = [7 8];

% Check observability using obsv function
O = obsv(A, C);

% Display the observability matrix
disp('Observability matrix:');
disp(O);

% Check if the system is observable
if rank(O) == size(A, 1)
    disp('The system is observable.');
else
    disp('The system is not observable.');
end

See also


obsvf.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< nyquist Control System functions obsvf >>