Main Content
matrix2transform
Class: sim3d.scenario.ActorBehavior
Namespace: sim3d.scenario
Convert 4-by-4 pose matrix to translation, rotation, and scale vectors
Since R2023b
Syntax
[translation, rotation, scale] = matrix2transform(self, matrix)
Description
[translation, rotation, scale] = matrix2transform(self, matrix)
converts
the 4-by-4 transformation matrix matrix
to 3D translation, rotation, and
scale vectors. Use the matrix2transform
method to convert pose matrices
used by RoadRunner to translation and rotation vectors used by Simulink®
3D Animation™. For more information about the output vectors, see sim3d.Actor
(Simulink 3D Animation).
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2023b