vecnorm
Vector-wise norm
Description
N = vecnorm(
returns the 2-norm or
Euclidean
norm of A
)A
:
If
A
is a vector, thenvecnorm
returns the norm of the vector.If
A
is a matrix, thenvecnorm
returns the norm of each column.If
A
is a multidimensional array, thenvecnorm
returns the norm along the first array dimension whose size does not equal 1.
N = vecnorm(
calculates the generalized
vector p-norm.A
,p
)
Examples
Input Arguments
More About
Extended Capabilities
Version History
Introduced in R2017b