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?

回答 (1 件)

Matt Fig
Matt Fig 2011 年 3 月 14 日
zlim([0 10])

1 件のコメント

Jan
Jan 2011 年 3 月 14 日
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.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeGraphics Object Properties についてさらに検索

タグ

質問済み:

2011 年 3 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by