function E = expm3(A)
%EXPM3  Matrix exponential via eigenvalues and eigenvectors.
%   E = expm3(A) illustrates one possible way to compute the matrix
%   exponential.  As a practical numerical method, the accuracy
%   is determined by the condition of the eigenvector matrix.
%
%   See also EXPM, EXPM1, EXPM2.

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 5.6 $  $Date: 2000/06/01 02:04:17 $

[V,D] = eig(A);
E = V * diag(exp(diag(D))) / V;
