isctrb

Returns true if the state-space model is controllable.

Syntax

BRES = isctrb(A, B)

BRES = isctrb(SYSLTI)

Inputs

A
The state matrix (n x n), where n is the number of states.
B
The input matrix (n x p), where p is the number of inputs.
SYSLTI
Continuous-time state-space model.

Outputs

BRES
A Boolean true if it is controllable.

Examples

Include the function isctrb:
SysInSS = ss(-eye(2, 2), [10 ; 1e-15], [10 10], 0);
bRes = isctrb(SysInSS)
bRes = 0
Include the function isctrb using transfer function model:
sys_tf=tf([1],[2 3]);
sys=ss(sys_tf);
bRes = isctrb(sys.a,sys.b)
bRes = 1

Comments

isctrb(SYSLTI) or isctrb(A,B) returns true if the state-space model is controllable.