This is a static copy of a profile reportHome
allchild (28 calls, 0.010 sec)
Generated 18-Mar-2011 23:32:26 using cpu time.
M-function in file /Applications/MATLAB_R2010a.app/toolbox/matlab/uitools/allchild.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
32 | ChildList=get(HandleList,'Chil... | 28 | 0.010 s | 100.0% |  |
33 | set(0,'ShowHiddenHandles',Temp... | 28 | 0 s | 0% |  |
31 | set(0,'ShowHiddenHandles','on'... | 28 | 0 s | 0% |  |
30 | Temp=get(0,'ShowHiddenHandles'... | 28 | 0 s | 0% |  |
26 | if ~isempty(nonHGHandleList) &... | 28 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.010 s | 100% | |
Children (called functions)
No childrenM-Lint results
No M-Lint messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 33 |
Non-code lines (comments, blank lines) | 23 |
Code lines (lines that can run) | 10 |
Code lines that did run | 8 |
Code lines that did not run | 2 |
Coverage (did run/can run) | 80.00 % |
Function listing
time calls line
1 function ChildList=allchild(HandleList)
2 %ALLCHILD Get all object children
3 % ChildList=ALLCHILD(HandleList) returns the list of all children
4 % (including ones with hidden handles) for each handle. If
5 % HandleList is a single element, the output is returned in a
6 % vector. Otherwise, the output is a cell array.
7 %
8 % Example:
9 % get(gca,'children')
10 % %or
11 % allchild(gca)
12 %
13 % See also GET, FINDALL.
14
15 % Loren Dean
16 % Copyright 1984-2009 The MathWorks, Inc.
17 % $Revision: 1.15.4.5 $ $Date: 2009/06/22 14:42:52 $
18
28 19 error(nargchk(1,1,nargin));
20
21 % figure out which, if any, items in list don't refer to hg objects
28 22 hgIdx = ishghandle(HandleList); % index of hghandles in list
28 23 nonHGHandleList = HandleList(~hgIdx);
24
25 % if any of the items in the nonHGHandlList aren't handles, error out
28 26 if ~isempty(nonHGHandleList) && ~all(ishandle(nonHGHandleList)),
27 error('MATLAB:allchild:InvalidHandles', 'Invalid handles passed to ALLCHILD.')
28 end
29
28 30 Temp=get(0,'ShowHiddenHandles');
28 31 set(0,'ShowHiddenHandles','on');
0.01 28 32 ChildList=get(HandleList,'Children');
28 33 set(0,'ShowHiddenHandles',Temp);