Live scripts supports the 3D-rotation of figures. One can click on the generated output figure and this makes toolbar to appear and select the ‘rotate’ tool to rotate the figure as required.
‘rotate3d’ command can be used to turn the mode on/off for 3D-rotation in figures. Starting in R2018b, some rotate interactions are enabled by default, regardless of the rotate mode. If you want to disable these default interactions, then use the disableDefaultInteractivity function.
For more details on ‘rotate3d’, kindly refer this documentation link.
Hope this helps!