主要内容

rotm

Extract rotation matrix

    Description

    rotationMatrix = rotm(transformation) returns the rotation matrix rotationMatrix from the SE(3) transformation transformation.

    rotationMatrix = rotm(rotation) returns the rotation matrix rotationMatrix from the SO(2) or SO(3) rotation rotation.

    Input Arguments

    collapse all

    Transformation, specified as a scalar se3 object or an N-element array of transformation objects. N is the total number of transformations.

    If you specify transformation as an array, each element must be of the same type.

    Rotation, specified as a scalar so3 object, or as an N-element array of rotation objects. N is the total number of rotations.

    If you specify rotation as an array, each element must be of the same type.

    Output Arguments

    collapse all

    Rotation matrix, returned as a 2-by-2-by-N array for 2-D transformations or a 3-by-3-by-N array for 3-D transformations. N is the total number of transformations.

    Extended Capabilities

    expand all

    C/C++ Code Generation
    Generate C and C++ code using MATLAB® Coder™.

    See Also

    Functions

    Objects