How to set the aspect ratio of 2 axis only without giving a value to the 3rd axis

2 ビュー (過去 30 日間)
REDI PONI
REDI PONI 2018 年 7 月 19 日
I have a 3d plot with for z=f(x,y) where x y are dimensions in cm lets say and z i a value in dB. I would like to set axis ratio same for only the x and y direction and i would not like to touch the z axis. The similar topics all set the ratio with a vector for all three axis.

回答 (1 件)

Constantino Carlos Reyes-Aldasoro
Constantino Carlos Reyes-Aldasoro 2018 年 7 月 19 日
Your easiest option is using the handles:
hPlot = plot3(x,y,z);
if you then look at the properties of hPlot, you will find the limits of each axis separately, and these can be modified separately
hPlot.XLim hPlot.YLim hPlot.ZLim
and so you can arrange the aspect ratio in anyway you want.
Hope this helps

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by