Pregunta

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

¿Fue útil?

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
scroll top