This is a static copy of a profile reportHome
ancestor>isatype (8 calls, 0.000 sec)
Generated 15-Mar-2007 12:02:03 using real time.
M-subfunction in file C:\Program Files\MATLAB71\toolbox\matlab\graphics\ancestor.m
[Copy to new window for comparing multiple runs]
Parents (calling functions)
Function Name | Function Type | Calls |
ancestor | M-function | 8 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
59 | istype = false; | 8 | 0.000 s | 76.3% |  |
63 | istype=true; | 4 | 0.000 s | 23.7% |  |
64 | end | 4 | 0 s | 0% |  |
61 | if strcmpi(get(h,'type'),type)... | 8 | 0 s | 0% |  |
60 | if ischar(type) % ancestor(h,'... | 8 | 0 s | 0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.000 s | 100% | |
Children (called functions)
No childrenM-Lint results
No M-Lint messages.Coverage results
[ Show coverage for parent directory ]
Total lines in file | 22 |
Non-code lines (comments, blank lines) | 6 |
Code lines (lines that can run) | 16 |
Code lines that did run | 5 |
Code lines that did not run | 11 |
Coverage (did run/can run) | 31.25 % |
Function listing
time calls line
57 function istype=isatype(h,type)
58
< 0.01 8 59 istype = false;
8 60 if ischar(type) % ancestor(h,'type'..)
8 61 if strcmpi(get(h,'type'),type) ||...
62 isa(handle(h),type)
< 0.01 4 63 istype=true;
4 64 end
65 else % ancestor(h,{'type1','type2',..}...)
66 % % make sure it's a cell array
67 % type = cellstr(type);
68 if any(strcmpi(get(h,'type'),type))
69 istype = true;
70 else
71 % check each cell
72 for k=1:length(type)
73 if isa(handle(h),type{k})
74 istype=true;
75 end
76 end
77 end
78 end