MATLAB: How to change the default Original View that a Figure resets to when I double-click inside the Figure Axes

MATLAB

I have plotted some data and would like to pan, zoom, and rotate this data. However, when I double click, it takes me back to the view from when the data is first plotted. This is the same view that I see if I right click and select "Reset to Original View" within the axes. Is there a way to reset the functionality for double clicking so that I double click, the view instead changes to some previously specified axis limits and camera angle? 

Best Answer

This can be done by calling the "zoom reset" command from the Command Window:
1. Plot some data. For example, you could run the following command to produce a sample figure:
>> surf(peaks)
2. Change the view: pan, zoom, etc, until you reach a desired view to save as the default. 
3. Reset the default view:
>> zoom reset
To verify that this works, proceed again to change the view: pan, and zoom so the data appears differently. Then double-click, and observe that you revert to the view following step 2 above.
For more information, please refer to the following documentation link: