%  Example 2.8.  Computes the observability and controllability matrices.
clear
%  Define the state model matrices.
A=[-1  2
    0 -3];
B=[1 0
   0 4];
C=[1  1
   1 -1];
D=zeros(2);
%  Compute the controllability matrix.
ctrb(A,B)
%  Compute the observability matrix.
obsv(A,C)
