The 3D animation is created using the surf and drawnow commands. An example animation file is provided. The rotation is based on Euler/Cardan angles and performed with individually computed rotation matrices (rather than using Matlab's own rotate algorithm).
In a future version, there will be more documentation on the animation data and scripts for creating animation files (both in Mathematica and Matlab) will be provided. Also, avi export will be available in the next version.
Alexander Erlich (2021). animated spinning top with Cardan mounting (https://www.mathworks.com/matlabcentral/fileexchange/28309-animated-spinning-top-with-cardan-mounting), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!