Zooming a plot for detailed analysis is often encountered in scientific research. I have recently stumbled upon a script which creates instant zoomed plot on matlab. The link of this script is given below.
https://mathworks.com/matlabcentral/fileexchange/93845-zoomplot