home *** CD-ROM | disk | FTP | other *** search
/ Borland Programmer's Resource / Borland_Programmers_Resource_CD_1995.iso / utils / mathstud / lu.m < prev    next >
Encoding:
Text File  |  1995-05-19  |  243 b   |  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.