home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 5 / ctrom5b.zip / ctrom5b / WINDOWS / DIVERSEN / MATHS171 / LU.M < prev    next >
Text File  |  1993-03-23  |  243b  |  11 lines

  1. function [L,U,P]=lu(x)
  2. %[L,U,P]=lu(x)
  3. %lu interface to the built-in _lu  -  NOT SUPPORTED
  4. %This decomposition is not used as often as the more powerful SVD
  5.  
  6. error('not supported yet');
  7.  
  8. [A,P]= _lu(x);
  9. U=triu(A);
  10. L=tril(A,-1)+eye(A);
  11.