You are here

Routine check_stab

Check whether an LTI system is stable.


This routine checks whether an LTI system is stable, i.e. whether all its eigenvalues are inside the left half plane or a given truncated sector.



Input arguments

sys LTI object or square matrix whose stability has to be tested. A list of eigenvalues can also be directly given.
sector Vector $[\alpha\ \xi]$ or $[\alpha\ \xi\ \omega_c]$ characterizing the considered truncated sector (see display_sector for a complete description). This parameter is optional and the default value is sector=[0 0], which means that the left half plane is considered.

Output arguments

stable Boolean indicating whether sys is stable (1) or not (0).
w Imaginary part of the most unstable eigenvalue.



All eigenvalues of sys are inside the left half plane, so stable is equal to 1 and w is empty.
sys=[-1 -3 -1+2i -1-2i -2+3i -2-3i];
sector=[-0.8 0.3 1];

The eigenvalues $-1\pm 2i$ are outside the considered sector, so stable is equal to 0 and w is equal to 2.

See also