ylim

Set and query range of y axis.

Syntax

ylim()

ylim([Y_lo Y_hi])

ylim(hAxis, ...])

Inputs

Y_lo, Y_hi
Lowest and highest y ranges.
Type: double | integer
Dimension: scalar
hAxes
Axis handle.
Type: double
Dimension: scalar

Example

Simple ylim example:

clf;
ylim([2 8])
ylim()
ans = [Matrix] 1 x 2
2  8
Figure 1. Simple ylim example