Rotate a coordinate about an axis
- Axes defined by spherical coordinates are unit vectors (r = 1)
- Angles are expected in radians
- Theory reference: Ramnath Vaidyanathan - Rotation in spherical coordinates, 2016, GitHub
- Image credit: By Andeggs - Own work, Public Domain, https://commons.wikimedia.org/w/index.php?curid=7478049 - Edited by Louis Vallance to swap around the angles
Citation pour cette source
fsgeek (2025). Rotate a coordinate about an axis (https://fr.mathworks.com/matlabcentral/fileexchange/125950-rotate-a-coordinate-about-an-axis), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.2.3 | Updated description |
||
| 1.2.2 | Minor code optimisations |
||
| 1.2.1 | Fixed bug where rotation about cardinal 3-direction produced NaN result |
||
| 1.2.0 | - Fixed bug in legend text
|
||
| 1.1.1 | - Bug fixes
|
||
| 1.1.0 | MATLAB figure now includes "sweep" effect to visualize the rotation |
||
| 1.0.9 | - Improved documentation of THRESHOLD user setting
|
||
| 1.0.8 | - Function now outputs reference angles
|
||
| 1.0.7 | Updated submission title |
||
| 1.0.6 | Updated documentation |
||
| 1.0.5 | Updated image to reflect correct angle convenrion |
||
| 1.0.4 | Fixed crash |
||
| 1.0.3 | Updated error messages |
||
| 1.0.2 | Updated error messages |
||
| 1.0.1 | Updated documentation |
||
| 1.0.0 |
