Rodrigues' axis-angle rotation

The script shows how to rotate vectors in space about an axis through the origin as well as any arbitrary axis

You are now following this Submission

Includes 2 code blocks. The first one uses the Rodrigues' formula to rotate a vector in space around an axis. The second block can be used to perform rotations about an arbitrary axis
1) Rotates a vector in 3D space about an axis passing through the origin
2) Rotates a vector in 3D space about an arbitrary axis
Can be used for generating cones in space since in the stated example the axis of rotation and the rotation vector have a common origin
Source/Reference:
https://en.wikipedia.org/wiki/Rodrigues%27_rotation_formula

Cite As

Soumitra Sitole (2026). Rodrigues' axis-angle rotation (https://www.mathworks.com/matlabcentral/fileexchange/73828-rodrigues-axis-angle-rotation), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Interactions, Camera Views, and Lighting in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.1

Updated with appropriate comments

1.0.0