is2D
Checks if ax is a 2-D Polar or Cartesian axes.
📝Syntax
tf = is2D(ax)
📥Input Arguments
Parameter Description
ax a scalar graphic object: axe.
📤Output Arguments
Parameter Description
tf a logical scalar.
📄Description

is2D returns Checks if ax is a 2-D Polar or Cartesian axes.

💡Examples
f = figure();
ax = gca();
plot(ax, 1:10, sin(1:10));
assert_istrue(is2D(ax)); 

f = figure();
surf(peaks);
ax = gca();
assert_isfalse(is2D(ax));
🔗See Also
isgraphics
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub