normNorm of a vector or matrix
norm(x)norm(x,p)x should be a vector, real or complex.p is not given, it returns the 2-norm of x, i.e.,x is empty, it returns 0.p is given, it should be any real positive scalar, -inf or inf.p, it returns the following norms:p | Vector norm |
|---|---|
Inf | |
-Inf | |
| Any real positive scalar |
norm(X)norm(X, p)X should be a X is empty, it returns 0.p is not given, it returns the 2-norm of X, i.e., the largest singular value of X.p is given, it should be either 1, 2, or Inf.p, it returns the following norms:p | Matrix norm |
|---|---|
| 1 | |
| 2 | The largest singular value of |
Inf |