% matrix power examples

C=[0 2 0 0 0 0 0 0];
CC=[0 0 0 0 0 0 0 0]
A=toeplitz(CC,C)

R=[0 10^2 0 0 0];
S=[0 10^-4 0 0 0];
B=toeplitz(S,R)

AA=[-1 4 ; 0 -1]

BB=[-1 4 0;
    0 -1 0;
    0 0 1]
X=[-5 4 4;
    0 -2-2*i 4;
    0 0 -3+i]

XX=[-5 0 0;
    0 -2-2*i 0;
    0 0 -3+i]