vecnorm
Vector-wise norm
Description
N = vecnorm( returns the 2-norm or
Euclidean
norm of A)A:
If
Ais a vector, thenvecnormreturns the norm of the vector.If
Ais a matrix, thenvecnormreturns the norm of each column.If
Ais a multidimensional array, thenvecnormreturns 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

