FUNCTION REFERENCE

rotmat2vec3d

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

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

Syntax

v = rotmat2vec3d(R)

Inverse of rotvec2mat3d: v is 1-by-3 with the angle in [0, pi] as its length; R is first replaced by its nearest rotation.

Example

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

Differences from MATLAB: one 3-by-3 matrix per call (no 3-by-3-by-N input).

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