specify axis limit to be nonneagtive

1 view (last 30 days)
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)?

Accepted Answer

Ameer Hamza
Ameer Hamza on 25 May 2020
Edited: Ameer Hamza on 25 May 2020
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])

More Answers (0)

Categories

Find more on Graphics Objects in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!