www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/+mbcgui/+util/isComponentParent.m
function ret = isComponentParent(H) %ISCOMPONENTPARENT Check whether the argument is a valid parent. % % ISCOMPONENTPARENT(H) checks whether H contains a valid parent for a % component. Valid parents must be a valid scalar HG handle for either a % figure or a uipanel. % Copyright 2008-2015 The MathWorks, Inc. ret = isscalar(H) && (isgraphics(H, 'figure') || isgraphics(H, 'uipanel') || isgraphics(H, 'uitab'));