Mathematics | ![]() ![]() |
Vector and Matrix Norms
is computed by norm(x,p)
. This is defined by any value of p > 1, but the most common values of p are 1, 2, and . The default value is p = 2, which corresponds to Euclidean length.
[norm(v,1) norm(v) norm(v,inf)] ans = 3.0000 2.2361 2.0000
can be computed for p = 1, 2, and
by norm(A,p)
. Again, the default value is p = 2.
[norm(C,1) norm(C) norm(C,inf)] ans = 19.0000 14.8015 13.0000
![]() | The Kronecker Tensor Product | Solving Linear Equations | ![]() |