RotationViewer()
Problem:
Dealing with multiple 3D rotations is usally confusing and difficult to figure out. Specially consicative rotations about intrinsic (relative) and extrinsic (static) refrence coordinates are tricky.
Solution:
I have develepoed a simple Matlab GUI application to visualize those rotations in the form of animation and give rotation matrix corresponding to the final orientation.
How to use: Simply specify the following 3 inputs in the GUI
1. Rotation type:
-> Relative - successive rotations would be carried out about the axes of the newly rotated coordinate system. This kind of rotation are sometimes called intrinsic rotations.
-> Static - successive rotations are carried about the axes of a fixed coordinate system. These rotations are sometimes called extrinsic rotations.
2. Rotation angles: - here you just put rotation angles in degrees separated by space.
3. Rotation Axis: Here the axsi about which rotations are done should be specified as space separated x y or z.
Eg: To rotate 30 deg about x, and then 20 deg about the new y and -45 deg about the new z, you need the following inputs
Rotation Angles: 30 20 -45
Rotation Axis: x y z
NB: The number of rotation angles and rotation axis are not limited except that they should be of equal length.
Cita come
Norman (2025). RotationViewer() (https://it.mathworks.com/matlabcentral/fileexchange/62511-rotationviewer), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Simulink > Simulation >
- MATLAB > Graphics > Labels and Styling > Interactions, Camera Views, and Lighting >
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
