MATLAB Answers

zoom in function figure

14 views (last 30 days)
AA on 27 Oct 2017
Commented: AA on 27 Oct 2017
hi, my code shows me 10 different figures and for each figure I have to zoom in. This is very time consuming. Can I display the figures in such a way that they are automatically zoomed in on the x axis between x=400 and x=600, once being displayed.


Sign in to comment.

Accepted Answer

Steven Lord
Steven Lord on 27 Oct 2017
See the xlim or axis functions.

  1 Comment

AA on 27 Oct 2017
h=gcf; set(h.Children,'Xlim',[400 500]);

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by