Main Content

mrdivide, /

Transformation or rotation right division

Since R2022b

    Description

    transformationC = transformationA/transformationB right divides transformation transformationA by transformation transformationB and returns the quotient, transformation transformationC. transformationC is the same value as transformationA*inv(transformationB).

    You can use division to compose a sequence of transformations, so that transformationC represents a transformation where the inverse of transformationB is applied first, followed by transformationA.

    rotationC = rotationA/rotationB right divides transformation rotationA by transformation rotationB and returns the quotient, transformation rotationC. rotationC is the same value as rotationA*inv(rotationB).

    Input Arguments

    collapse all

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

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

    Either transformationA or transformationB must be a scalar transformation object of the same type. For example, if transformationA is an array of se2 objects, transformationB must be a scalar se2 object.

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

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

    Either transformationA or transformationB must be a scalar transformation object of the same type. For example, if transformationA is an array of se2 objects, transformationB must be a scalar se2 object.

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

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

    Either rotationA or rotationB must be a scalar rotation object of the same type. For example, if rotationA is an array of so2 objects, rotationB must be a scalar so2 object.

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

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

    Either rotationA or rotationB must be a scalar rotation object of the same type. For example, if rotationA is an array of se2 objects, rotationB must be a scalar se2 object.

    Output Arguments

    collapse all

    Transformation quotient, returned as a scalar se2 object, a scalar se3 object, or as an N-element array of the same transformation type as transformationA and transformationB. N is the length of the longer argument between transformationA and transformationB and each row represents the quotient between transformationA and transformationB.

    Rotation quotient, returned as a scalar so2 object, a scalar so3 object, or as an N-element array of the same rotation type as rotationA and rotationB. N is the length of the longer argument between rotationA and rotationB and each row represents the quotient between rotationA and rotationB.

    Version History

    Introduced in R2022b

    See Also

    Functions

    Objects