simple question but im new to matlab about restricting an axis to a certain value

I am plotting a surface graph with two variables and the output. The two variables give my output a range from 0 to 40. I am only interested in 0-10, but I want to keep the other two variables domains as they are. How can I restrict the z-axis so that it only shows 0-10 on the graph?

Risposte (1)

zlim([0 10])

1 Commento

Or if the handle is known and/or the concerned AXES object is not the current axes (gca): set(AxesH, 'YLim', [0,10])
If you look in the function ZLIM, you see, that this is very similar, therefore I post it as comment, not as an answer.

Accedi per commentare.

Categorie

Tag

Richiesto:

il 14 Mar 2011

Community Treasure Hunt

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

Start Hunting!

Translated by