<< xlabel | Graphics functions | ylabel >> |
lims = xlim() |
xlim([xmin, xmax]) |
xlim('auto') |
xlim('manual') |
m = xlim('mode') |
xlim(ax, ...) |
x-coordinates: vector or matrix.
enable automatic limit selection.
freeze the x-axis limits at their current value.
returns the current x-axis limits mode.
a scalar graphics object value: parent container, specified as a axes.
two-element vector: [xmin, xmax]
'auto' or 'manual'.
xlim get or set the limits of the x-axis for the current plot.
x = linspace(-1, 1);
y = sin(2*pi*x);
plot(x, y);
lim = xlim()
m = xlim('mode')
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET