L9diag.html Komennot:
>> A=0.1*[15 6 -12; 4 10 -2; -4 8 -7]
>> [V,D]=eig(A)
>> VI=inv(V)
>> [A,V*D*VI]   % Ovatko samat?
>> [A^10,V*(D.^10)*VI]  % Samat?
Tulokset:
A =

    1.5000    0.6000   -1.2000
    0.4000    1.0000   -0.2000
   -0.4000    0.8000   -0.7000


V =

   -0.8944   -0.4472    0.0000
   -0.4472    0.0000    0.8944
   -0.0000   -0.8944    0.4472


D =

    1.8000         0         0
         0   -0.9000         0
         0         0    0.9000


VI =

   -0.9938   -0.2485    0.4969
   -0.2485    0.4969   -0.9938
   -0.4969    0.9938    0.2485


ans =

    1.5000    0.6000   -1.2000    1.5000    0.6000   -1.2000
    0.4000    1.0000   -0.2000    0.4000    1.0000   -0.2000
   -0.4000    0.8000   -0.7000   -0.4000    0.8000   -0.7000


ans =

  317.4136   79.2662 -158.5325  317.4136   79.2662 -158.5325
  158.5325   39.9818  -79.2662  158.5325   39.9818  -79.2662
         0         0    0.3487    0.0000    0.0000    0.3487