How to determine if axes are 2D or 3D in Matlab?
-
25-02-2021 - |
Pregunta
As stated, what is the easiest way to determine programmatically if a Matlab axes object is a 2D or 3D plot?
Solución
Examine the output of [az,el] = view
. If it's 2D, then el == 90
.
Otros consejos
use: numel(axis)/2
it will return 2 for 2d and 3 for 3d.
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow