isgraphics
Check for graphics object.
📝Syntax
tf = isgraphics(GO)
tf = isgraphics(GO, type)
📥Input Arguments
Parameter Description
GO variable or graphics object.
type a character vector or scalar string: 'axes', 'line', 'image', 'root', 'text', 'figure'.
📤Output Arguments
Parameter Description
tf a scalar logical.
📄Description

isgraphics checks is variable is an graphics object.

💡Examples
f = figure()
tf = isgraphics(f)
tf = isgraphics(f, 'figure')
tf = isgraphics(f, 'text')
f = 3
tf = isgraphics(f)
🔗See Also
isprop
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub