This is a static copy of a profile report

Home

imuitools\private\isSingleImageDefaultPos (1 call, 0.000 sec)
Generated 15-Mar-2007 12:02:03 using real time.
M-function in file C:\Program Files\MATLAB71\toolbox\images\imuitools\private\isSingleImageDefaultPos.m
[Copy to new window for comparing multiple runs]

Parents (calling functions)

Function NameFunction TypeCalls
imshowM-function1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
19
axes_has_company = (length(kid...
10.000 s49.8%
30
is_single = true;            
10.000 s39.2%
29
if axes_in_default_pos
10.000 s11.0%
35
end
10 s0%
34
end
10 s0%
Other lines & overhead  0 s0%
Totals  0.000 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
allchildM-function10 s0%
ancestorM-function10 s0%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  0.000 s100% 
M-Lint results
No M-Lint messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in file35
Non-code lines (comments, blank lines)15
Code lines (lines that can run)20
Code lines that did run15
Code lines that did not run5
Coverage (did run/can run)75.00 %
Function listing
   time   calls  line
1 function is_single = isSingleImageDefaultPos(fig_handle, ax_handle)
2 %isSingleImageDefaultPos
3 % IS_SINGLE = isSingleImageDefaultPos(FIG,AX) returns true when it the
4 % axes AX is alone in the figure FIG and AX is in its default
5 % position. This heuristic means it is safe to resize the figure to
6 % accommodate user requests on the initial magnification.
7
8 % Copyright 1993-2003 The MathWorks, Inc.
9 % $Revision: 1.1.8.1 $ $Date: 2004/08/10 01:50:28 $
10
1 11 more_than_one_image = (length(findobj(ax_handle, 'Type', 'image')) > 1);
1 12 if more_than_one_image
13 is_single = false;
14
1 15 else
1 16 fig_kids = allchild(fig_handle);
1 17 kids = [findobj(fig_kids, 'Type', 'axes') ;
18 findobj(fig_kids, 'Type', 'uicontrol', 'Visible', 'on')];
< 0.01 1 19 axes_has_company = (length(kids) > 1);
20
1 21 if axes_has_company
22 is_single = false;
1 23 else
1 24 active_property = get(ax_handle,'ActivePositionProperty');
1 25 fig = ancestor(ax_handle,'Figure');
1 26 axes_in_default_pos = (isequal(get(ax_handle, active_property), ...
27 get(fig, ...
28 ['DefaultAxes' active_property])));
< 0.01 1 29 if axes_in_default_pos
< 0.01 1 30 is_single = true;
31 else
32 is_single = false;
33 end
1 34 end
1 35 end