This is a static copy of a profile report

Home

is2D (84 calls, 0.021 sec)
Generated 18-Mar-2011 23:31:54 using cpu time.
M-function in file /Applications/MATLAB_R2010a.app/toolbox/matlab/graphics/is2D.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
legend>make_legendM-subfunction2
legendcolorbarlayout>doLayoutM-subfunction20
legendcolorbarlayout>localGetYLabelWidthM-subfunction20
...ndcolorbarlayout>localGetXLabelHeightM-subfunction20
legendcolorbarlayout>localGetTitleHeightM-subfunction22
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
13
if iscell(ax_view)
840.010 s50.0%
12
camUp = get(ax,'CameraUpVector...
840.010 s50.0%
20
end
840 s0%
19
retval = isequal(ax_view,VIEW_...
840 s0%
18
else
840 s0%
All other lines  0 s0%
Totals  0.021 s100% 
Children (called functions)
No children
M-Lint results
Line numberMessage
16The variable 'retval' appears to change size on every loop iteration. Consider preallocating for speed.
Coverage results
[ Show coverage for parent directory ]
Total lines in function20
Non-code lines (comments, blank lines)10
Code lines (lines that can run)10
Code lines that did run7
Code lines that did not run3
Coverage (did run/can run)70.00 %
Function listing
   time   calls  line
1 function [retval] = is2D(ax)
2 % Internal use only. This function may be removed in a future release.
3
4 % Copyright 2002-2005 The MathWorks, Inc.
5
6 %IS2D Return true if axes is 2-D
7
8 % For now, just consider x-y plots. A more generic version is
9 % commented out below.
84 10 VIEW_2D = [0,90];
84 11 ax_view = get(ax,'View');
0.01 84 12 camUp = get(ax,'CameraUpVector');
0.01 84 13 if iscell(ax_view)
14 % ToDo: replace for loop with cellfun
15 for n = 1:length(ax_view)
16 retval(n) = isequal(ax_view{n},VIEW_2D) && isequal(abs(camUp{n}),[0 1 0]);
17 end
84 18 else
84 19 retval = isequal(ax_view,VIEW_2D) && isequal(abs(camUp),[0 1 0]);
84 20 end

Other subfunctions in this file are not included in this listing.