simple question but im new to matlab about restricting an axis to a certain value
Show older comments
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?
Answers (1)
Matt Fig
on 14 Mar 2011
zlim([0 10])
1 Comment
Jan
on 14 Mar 2011
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.
Categories
Find more on Graphics Object Properties in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!