xlim
Get or set x-axis limits.
Syntax
Section titled “Syntax”xlim([xmin xmax])xlim('auto')lim = xlimDescription
Section titled “Description”Sets or queries the x-axis limits of the active axes. Pass 'auto' to revert to automatic, 'manual' to freeze current, or a 2-element vector to set explicit limits.
Example
Section titled “Example”xlim([0 100])