This is a static copy of a profile report

Home

cla (243 calls, 0.754 sec)
Generated 05-Aug-2011 13:03:27 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/cla.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
newplot>ObserveAxesNextPlotsubfunction243
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
29
clo(ax, extra{:});
2430.754 s100.0%
31
if (nargout ~= 0)
2430 s0%
22
extra = varargin(2:end);
2430 s0%
21
ax = varargin{1};
2430 s0%
19
if nargin>0 && leng...
2430 s0%
All other lines  0 s0%
Totals  0.754 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
graphics/private/clofunction2430.754 s100.0%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  0.754 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function33
Non-code lines (comments, blank lines)22
Code lines (lines that can run)11
Code lines that did run5
Code lines that did not run6
Coverage (did run/can run)45.45 %
Function listing
   time   calls  line
1 function ret_ax = cla(varargin)
2 %CLA Clear current axis.
3 % CLA deletes all children of the current axes with visible handles.
4 %
5 % CLA RESET deletes all objects (including ones with hidden handles)
6 % and also resets all axes properties, except Position and Units, to
7 % their default values.
8 %
9 % CLA(AX) or CLA(AX,'RESET') clears the single axes with handle AX.
10 %
11 % See also CLF, RESET, HOLD.
12
13 % CLA(..., HSAVE) deletes all children except those specified in
14 % HSAVE.
15
16 % Copyright 1984-2002 The MathWorks, Inc.
17 % $Revision: 5.17.4.3 $ $Date: 2008/05/05 21:38:14 $
18
243 19 if nargin>0 && length(varargin{1})==1 && ishghandle(varargin{1}) && strcmpi((get(varargin{1},'Type')),'axes')
20 % If first argument is a single axes handle, apply CLA to these axes
243 21 ax = varargin{1};
243 22 extra = varargin(2:end);
23 else
24 % Default target is current axes
25 ax = gca;
26 extra = varargin;
27 end
28
0.75 243 29 clo(ax, extra{:});
30
243 31 if (nargout ~= 0)
32 ret_ax = ax;
33 end