This is a static copy of a profile reportHome
axescheck (2002 calls, 0.142 sec)
Generated 05-Aug-2011 13:03:28 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/axescheck.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
14 | if (nargs > 0) && (... | 2002 | 0.055 s | 38.5% |  |
20 | inds = find(strcmpi('parent',a... | 2002 | 0.033 s | 23.1% |  |
21 | if ~isempty(inds) | 2002 | 0.022 s | 15.4% |  |
13 | ax=[]; | 2002 | 0.022 s | 15.4% |  |
30 | end | 2002 | 0 s | 0% |  |
All other lines | | | 0.011 s | 7.7% |  |
Totals | | | 0.142 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 30 |
Non-code lines (comments, blank lines) | 10 |
Code lines (lines that can run) | 20 |
Code lines that did run | 12 |
Code lines that did not run | 8 |
Coverage (did run/can run) | 60.00 % |
Function listing
time calls line
1 function [ax,args,nargs] = axescheck(varargin)
2 %AXESCHECK Process leading Axes object from input list
3 % [AX,ARGS,NARGS] = AXESCHECK(ARG1,ARG2,...) checks if ARG1 is an Axes
4 % and returns it in AX if it is and returns the processed argument
5 % list in ARGS and NARGS. If ARG1 is not an Axes, AX will return empty.
6 % Also checks arguments that are property-value pairs 'parent',ARG.
7
8 % Copyright 1984-2006 The MathWorks, Inc.
9 % $Revision $ $Date: 2008/05/23 15:35:43 $
10
2002 11 args = varargin;
2002 12 nargs = nargin;
0.02 2002 13 ax=[];
0.05 2002 14 if (nargs > 0) && (numel(args{1}) == 1) && ishghandle(args{1},'axes')
713 15 ax = args{1};
713 16 args = args(2:end);
713 17 nargs = nargs-1;
713 18 end
2002 19 if nargs > 0
0.03 2002 20 inds = find(strcmpi('parent',args));
0.02 2002 21 if ~isempty(inds)
22 inds = unique([inds inds+1]);
23 pind = inds(end);
24 if nargs >= pind && ishghandle(args{pind})
25 ax = args{pind};
26 args(inds) = [];
27 nargs = length(args);
28 end
29 end
2002 30 end