
A=[ 1 1 0 0 0;
    0 1 0 0 0;
    0 0 -1 1 0;
    0 0 0 -1 0;
    0 0 0 0 2]

B=[0; 1; 0; -1; 0]

C=[1 0 1 0 1]

D=0

u(1)=0;
u(2)=-1;
u(3)=1;
u(4)=-1;
u(5)=0;

y(1)=0;
y(2)=0;
y(3)=4;
y(4)=2;
y(5)=6;

fprintf('---------------------------------\n');

u(1)=0;
u(2)=-1;
u(3)=1;
u(4)=-1;
u(5)=0;
u(6)=0;

y(1)=0;
y(2)=0;
y(3)=4;
y(4)=2;
y(5)=6;
y(6)=-1;


fprintf('------------------------------------\n');

u(1)=0;
u(2)=-1;
u(3)=1;
u(4)=-1;
u(5)=0;
u(6)=0;

y(1)=0;
y(2)=0;
y(3)=4;
y(4)=2;
y(5)=6;
y(6)=8;

