MATLAB: Specify axis limit to be nonneagtive

MATLAB

discusses controling where data appears in the axes by setting the x-axis, y-axis, and z-axis limits.
Then, how can I set the y axis to be nonnegative (but doe not set the upper limit)?

Best Answer

You can set the upper limit to Inf to let MATLAB automatically that
axis([0 inf 0 inf 0 inf])
or
xlim([0 inf])
ylim([0 inf])
zlim([0 inf])