<< nextpow2 | Elementary functions | normest >> |
R = norm(V) |
R = norm(V, p) |
R = norm(V, 'fro') |
R = norm(M) |
R = norm(M, 1) |
R = norm(M, 2) |
R = norm(M, Inf) |
R = norm(M, 'fro') |
a 2D matrix single or double
a vector single or double
a scalar (p-norm)
result of norm: scalar.
norm computes the norm of a vector or a matrix.
Frobenius norm of M is equal to sqrt (sum (diag (M' * M))) .
M = [1 2; 3 4];
norm(M)
norm(M, 1)
norm(M, 2)
norm(M, Inf)
norm(M, 'fro')
V = [1 2 3 4];
norm(V)
norm(V, 1)
norm(V, 2)
norm(V, Inf)
norm(V, 'fro')
x = ones(3000, 3000);
tic();R = norm(x);toc
svd.
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET