simple question but im new to matlab about restricting an axis to a certain value
Mostra commenti meno recenti
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)
Matt Fig
il 14 Mar 2011
zlim([0 10])
1 Commento
Jan
il 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.
Categorie
Scopri di più su Graphics Object Properties in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!