home *** CD-ROM | disk | FTP | other *** search
/ Borland Programmer's Resource / Borland_Programmers_Resource_CD_1995.iso / utils / mathstud / cond.m < prev    next >
Encoding:
Text File  |  1995-05-19  |  211 b   |  11 lines

  1. function y=cond(x)
  2. %y=cond(x)
  3. %x - input matrix
  4. %y - the condition number of a matrix using the SVD
  5.  
  6. %       S.Halevy 7/31/92
  7. %       Copyright (c) 1992 by the MathWizards
  8.  
  9. S=svd(x);
  10. y=max(S)/min(S); 
  11.