How to determine if axes are 2D or 3D in Matlab?

北慕城南 提交于 2019-12-11 03:39:29

问题


As stated, what is the easiest way to determine programmatically if a Matlab axes object is a 2D or 3D plot?


回答1:


Examine the output of [az,el] = view. If it's 2D, then el == 90.




回答2:


use: numel(axis)/2

it will return 2 for 2d and 3 for 3d.



来源:https://stackoverflow.com/questions/8064969/how-to-determine-if-axes-are-2d-or-3d-in-matlab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!