Name
CL_unitVector — Vector normalization
Calling Sequence
[v]=CL_unitVector(u)
Description
-
Normalizes a vector or a matrix of vectors. If u is a matrix, v(:,i) = CL_unitVector(u(:,i))
NOTE: if P~=1 (u is an hypermatrix) then v(:,:,i) = CL_unitVector(u(:,:,i)).
- Last update : 27/04/2007
Parameters
- u:
vector or matrix of vectors columnwise (KxNxP)
- v:
vector or matrix of vectors u normalized (KxNxP)