Mathworks really should support the 3D mouse by default, but until they do I created a simple hack to allow one to use a 3D mouse to rotate a figure.
The function connects to the mouse driver COM object and uses a timer function to poll the mouse position and rotation. To prevent excessive resource use the time step is increased when the mouse is not in use.
Some more work is needed, but hopefully this will inspire Mathworks to include support for a 3D mouse in the next release.
Visit http://www.3dconnexion.com/ to find out what a 3D mouse is.
Gus Brown (2022). 3D mouse support (https://www.mathworks.com/matlabcentral/fileexchange/18266-3d-mouse-support), 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!