It computes vecnorm for those using matlab version earlier than 2017b


Updated Fri, 10 Apr 2020 19:33:47 +0000

View License

N = vecnorm(A)
N = vecnorm(A,p)
N = vecnorm(A,p,dim)

N = vecnorm(A) returns the 2-norm or Euclidean norm of A:

If A is a vector, then vecnorm returns the norm of the vector.

If A is a matrix, then vecnorm returns the norm of each column.

If A is a multidimensional array, then vecnorm returns the norm along the first array dimension whose size does not equal 1.

Cite As

Lateef Adewale Kareem (2023). VecNorm (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes