allchild.m
来自「这是MATLAB小型的。下下去看看嘛」· M 代码 · 共 25 行
M
25 行
function ChildList=allchild(HandleList);
%ALLCHILD Get all object children
% ChildList=ALLCHILD(HandleList) returns the list of all children
% (including ones with hidden handles) for each handle. If
% HandleList is a single element, the output is returned in a
% vector. Otherwise, the output is a cell array.
%
% For example, try get(gca,'children') and allchild(gca).
%
% See also GET, FINDALL.
% Loren Dean
% Copyright 1984-2002 The MathWorks, Inc.
% $Revision: 1.15 $ $Date: 2002/04/09 01:35:56 $
error(nargchk(1,1,nargin));
if ~all(ishandle(HandleList)),
error('Invalid handles passed to ALLCHILD.')
end
Temp=get(0,'ShowHiddenHandles');
set(0,'ShowHiddenHandles','on');
ChildList=get(HandleList,'Children');
set(0,'ShowHiddenHandles',Temp);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?