home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / MATFUN.DI$ / EXPM3.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  409 b   |  12 lines

  1. function E = expm3(A)
  2. %EXPM3    Matrix exponential via eigenvalues and eigenvectors.
  3. %    E = expm3(A) illustrates one possible way to compute the matrix
  4. %    exponential.  As a practical numerical method, the accuracy
  5. %    is determined by the condition of the eigenvector matrix.
  6. %    See also EXPM, EXPM1, EXPM2.
  7.  
  8. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  9.  
  10. [V,D] = eig(A);
  11. E = V * diag(exp(diag(D))) / V;
  12.