| << abyss | Graphics functions | autumn >> | 
| p = ancestor(h, type) | 
| p = ancestor(h, type, 'toplevel') | 
graphics object
a row vector character or cell of strings:
a row vector character: return the highest parent in the object hierarchy that matches the condition.
a graphics object or []
ancestor returns the handle of the specified object's ancestor of a given type.
f = figure();
ax = gca();
s = surf(peaks);
AX = ancestor(s, 'axes')
F = ancestor(s, 'figure')
R = ancestor(s, 'root')
gcf.
| Version | Description | 
|---|---|
| 1.0.0 | initial version | 
Allan CORNET