%VECNORM   Vector norm.
%   N = VECNORM(A) returns the 2-norm of the elements of vector A. For
%   matrices, N is a row vector containing the 2-norm of each column. For
%   N-D arrays, N is the 2-norm of the elements along the first array
%   dimension whose size does not equal 1. The size of the dimension
%   operated on by VECNORM becomes 1 while the size of all other dimensions
%   remains the same.
%
%   N = VECNORM(A,p) returns the generalized vector p-norm of each column
%   of A, where p is any positive real value or Inf.
%
%   N = VECNORM(A,p,DIM) finds the generalized vector p-norm along the
%   dimension DIM of A.
%
%   Example:
%
%       % Find the 2-norm along the columns and rows of a matrix
%       A = [0 1 2; 3 4 5]
%       c = vecnorm(A)
%       r = vecnorm(A,2,2)
%
%   See also norm, pagenorm, normalize.

%   Copyright 2017-2021 The MathWorks, Inc.
%   Built-in function.
