powered by
Computes unit vectors from one or more vectors.
unitvector(x)
An object of the same type and dimensions as x, with each vector normalized to unit length. Zero vectors are returned unchanged.
x
Numeric vector or matrix. If a matrix is supplied, each row is interpreted as a vector.
vectornorm