| MATLAB Function Reference | ![]() |
Syntax
n=norm(A) n=norm(A,p)
Description
The norm of a matrix is a scalar that gives some measure of the magnitude of the elements of the matrix. The norm function calculates several different types of matrix norms:
n = norm(A)
returns the largest singular value of A, max(svd(A)).
n = norm(A, returns a different kind of norm, depending on the value of p)
p:
When A is a vector, slightly different rules apply:
norm(A, |
Returns sum(abs(A).^p)^(1/p), for any 1 p . |
norm(A) |
Returns norm(A,2). |
|
Returns max(abs(A)). |
|
Returns min(abs(A)). |
Remarks
To obtain the root-mean-square (RMS) value, use norm(A)/sqrt(n). Note that norm(A), where A is an n-element vector, is the length of A.
See Also
cond, condest, normest, rcond, svd
| nonzeros | normest | ![]() |