MATLAB: Camzoom turns off figure default interactivity for rotate and zoom

camzoomdatadefaultinteractiveMATLABpanrotatetipszoom

In R2018b there is a new functionality that by default you can click to rotate a 3D axes (or pan for 2D) and scroll to zoom.
However, once I call "camzoom", this functionality is disabled and I would like to get it back. How do I do this?
>> surf(peaks) %now i can click to rotate and scroll to zoom
>> camzoom(1) %all interactivity is turned off

Best Answer

In MATLAB R2018b, panning, zooming, data tips, and 3-D rotation can be enabled and disabled using the following commands:
>> disableDefaultInteractivity(gca)
>> enableDefaultInteractivity(gca)
Calling "enableDefaultInteractivity" will give the desired behavior.