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 |
n = norm(v) n = norm(v,p)
v | Input vector |
vector | |
X | Input array |
matrix | array | |
p | Norm type |
2 (default) | positive real scalar | Inf | | Inf |
n | Norm value |
scalar |