Home > freetb4matlab > plot > ancestor.m

ancestor

PURPOSE ^

% Return the first ancestor of handle object @var{h} whose type matches

SYNOPSIS ^

function p = ancestor (h, type, toplevel)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {@var{parent} =} ancestor (@var{h}, @var{type})
% @deftypefnx {Function File} {@var{parent} =} ancestor (@var{h}, @var{type}, 'toplevel')
% Return the first ancestor of handle object @var{h} whose type matches
% @var{type}, where @var{type} is a character string.  If @var{type} is a
% cell array of strings, return the first parent whose type matches
% any of the given type strings.
%
% If the handle object @var{h} is of type @var{type}, return @var{h}.
%
% If @code{'toplevel'} is given as a 3rd argument, return the highest
% parent in the object hierarchy that matches the condition, instead
% of the first (nearest) one.
% @seealso{get, set}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003