normalize edit page

normalize a vector

Syntax

v = normalize(v) % norm zero vectors are normalized to NaN
v = normalize(v,true) % norm zero vectors are normalized to zero

Input

v vector3d

Output

v vector3d