norm

Matrix and vector norms

📝 Syntax

  • 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')

📥 Input argument

  • M - a 2D matrix single or double

  • V - a vector single or double

  • p - a scalar (p-norm)

📤 Output argument

  • R - result of norm: scalar.

📄 Description

norm computes the norm of a vector or a matrix.

Frobenius norm of M is equal tosqrt (sum (diag (M' * M))) .

💡 Examples

🔗 See also

svd.

🕔 History

Version
📄 Description

1.0.0

initial version

Last updated

Was this helpful?