norm edit page

Syntax

   n = norm(v)
   n = norm(v,p)

Input

v Input vector
vector
X Input array
matrix | array
p Norm type
2 (default) | positive real scalar | Inf | Inf

Output

n Norm value
scalar

Example

See also