This is a static copy of a profile report

Home

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 NameFunction TypeCalls
ancestorM-function8
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
59
istype = false;
80.000 s76.3%
63
istype=true;
40.000 s23.7%
64
end
40 s0%
61
if strcmpi(get(h,'type'),type)...
80 s0%
60
if ischar(type) % ancestor(h,'...
80 s0%
Other lines & overhead  0 s0%
Totals  0.000 s100% 
Children (called functions)
No children
M-Lint results
No M-Lint messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in file22
Non-code lines (comments, blank lines)6
Code lines (lines that can run)16
Code lines that did run5
Code lines that did not run11
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