MATLAB: App designer 3d in GUI – Rotate3d

3dapp designerplot3

I've made an app with a plot3 plot. I just can't make my plot rotate by using the mouse – I've tried using "rotate3d on" but it does not fix it. Any suggestions?

Best Answer

I was able to do this using the following to control the UIAxes that I added to my AppDesigner app.
rotate3d(app.UIAxes,'on');
Note that this will turn the rotation permanently on, so I recommend having a toggle button to switch it on and off. Otherwise, every time you mouse over the axes, it will try to rotate.
Based on this documentation, however, interactivity with plots is not officially supported, so you may see some improvements/changes to this in future releases. https://www.mathworks.com/help/matlab/creating_guis/graphics-support-in-app-designer.html