 
    
Angle and Axis from Rotation Matrix
This block converts a rotation matrix to the equivalent rotation angle about a fixed axis.
Library
MATLAB Command Line
Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:
qc_open_library('quarc_library/Math Operations/Matrices')Description
         
    
This block converts a rotation matrix to the equivalent rotation angle about a fixed axis. If the rotation matrix represents a rotation of zero radians then the z-axis is returned with a rotation angle of zero.
Input Ports
R
The 3x3 rotation matrix to convert to an angle and axis.
Output Ports
theta
The angle in radians through which to rotate about the axis.
k
The axis about which to rotate as a 3-vector.
Parameters and Dialog Box
         
    
The Angle and Axis from Rotation Matrix block has no parameters.
Targets
| Target Name | Compatible* | Model Referencing | Comments | 
|---|---|---|---|
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | Last fully supported in QUARC 2018. | |
| Rapid Simulation (RSIM) Target | Yes | Yes | |
| S-Function Target | No | N/A | Old technology. Use model referencing instead. | 
| Normal simulation | Yes | Yes | 
See Also
         
    
Copyright ©2025 Quanser Inc. This page was generated 2025-06-17. "
                Submit feedback to Quanser about this page.
Link to this page.