MATLAB: How to “zoom in” in figure1 and see the same zoom of the x-axis in figure2.

"zoom in" different figures

How can I "zoom in" in figure1 and see the same zoom of the x-axis in figure2. The x-axis is both time. I want to zoom in with a box and see this part of time in figure2. Has someone a solution? Thanks in advance! Chris

Best Answer

Use linkaxes; see doc for details and (I'm pretty sure) example code...