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?

Respuestas (1)

zlim([0 10])

1 comentario

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.

Iniciar sesión para comentar.

Categorías

Más información sobre Graphics Object Properties en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 14 de Mzo. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by