Create translational transform
T = transl(X, Y, Z) T = transl(P) P = transl(T)
T = TRANSL(X, Y, Z) is a homogeneous transform representing a pure translation.
T = TRANSL(P) is a homogeneous transform representing a translation or point P=[X,Y,Z]. If P (Mx3) it represents a sequence and T (4x4xM) is a sequence of homogenous transforms such that T(:,:,i) corresponds to the i'th row of P.
P = TRANSL(T) is the translational part of a homogenous transform as a 3-element column vector. If T (4x4xM) is a homgoeneous transform sequence the rows of P (Mx3) are the translational component of the corresponding transform in the sequence.
Somewhat unusually this function performs a function and its inverse. An historical anomaly.