specify axis limit to be nonneagtive

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)?

 Réponse acceptée

Ameer Hamza
Ameer Hamza le 25 Mai 2020
Modifié(e) : Ameer Hamza le 25 Mai 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])

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by