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

  1. %NORM    Matrix or vector norm.
  2. %    For matrices..
  3. %      NORM(X) is the largest singular value of X, max(svd(X)).
  4. %      NORM(X,2) is the same as NORM(X).
  5. %      NORM(X,1) is the 1-norm of X, the largest column sum,
  6. %                      = max(sum(abs((X)))).
  7. %      NORM(X,inf) is the infinity norm of X, the largest row sum,
  8. %                      = max(sum(abs((X')))).
  9. %      NORM(X,'inf') is same as NORM(X,inf).
  10. %      NORM(X,'fro') is the F-norm, sqrt(sum(diag(X'*X))).
  11. %     NORM(X,P) is available for matrix X only if P is 1, 2, inf or 'fro'.
  12. %
  13. %     For vectors..
  14. %      NORM(V,P) = sum(abs(V)^P)^(1/P).
  15. %      NORM(V) = norm(V,2).
  16. %      NORM(V,inf) = max(abs(V)).
  17. %      NORM(V,-inf) = min(abs(V)).
  18. %
  19. %    In MATLAB 4.0, if X has complex components, z, then 
  20. %    abs(z) = sqrt(z*conj(z)), not abs(real(z)) + abs(imag(z)),
  21. %    which was used in some earlier versions of MATLAB.
  22. %
  23. %    See also COND, RCOND, CONDEST, NORMEST.
  24.  
  25. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  26. %    Built-in function.
  27.