tform = trvec2tform(trvec) converts
the Cartesian representation of a translation vector, trvec,
to the corresponding homogeneous transformation, tform.
When using the transformation matrix, premultiply it with the coordinates
to be transformed (as opposed to postmultiplying).
trvec — Cartesian representation of a translation vector n-by-3 matrix
Cartesian representation of a translation vector, specified
as an n-by-3 matrix containing n translation
vectors. Each vector is of the form t = [xyz].
Homogeneous transformation matrix, returned as a 4-by-4-by-n matrix
of n homogeneous transformations. When using the
rotation matrix, premultiply it with the coordinates to be rotated
(as opposed to postmultiplying).
Example: [0 0 1 0; 0 1 0 0; -1 0 0 0; 0 0 0 1]
Extended Capabilities
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.