FUNCTION REFERENCE

rotationMatrixToVector

Axis-angle rotation vector of a rotation matrix (postmultiply convention).

Axis-angle rotation vector of a rotation matrix (postmultiply convention).

Syntax

v = rotationMatrixToVector(R)

Inverse of rotationVectorToMatrix: v is 1-by-3 with the angle in [0, pi] as its length. R is first replaced by its nearest rotation (orthogonal polar factor); a singular or reflecting R is an error.

Example

rotationMatrixToVector([0 1 0; -1 0 0; 0 0 1])   % [0 0 pi/2]

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.