This is a static copy of a profile report

Home

axescheck (313 calls, 0.063 sec)
Generated 15-Mar-2007 12:01:46 using real time.
M-function in file C:\Program Files\MATLAB71\toolbox\matlab\graphics\axescheck.m
[Copy to new window for comparing multiple runs]

Parents (calling functions)

Function NameFunction TypeCalls
titleM-function34
holdM-function279
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
22
if ~isempty(inds)
3130.031 s50.0%
31
end
3130.016 s25.0%
11
args = varargin;
3130.001 s1.3%
13
ax=[];
3130.001 s0.9%
12
nargs = nargin;
3130.000 s0.3%
Other lines & overhead  0.014 s22.5%
Totals  0.063 s100% 
Children (called functions)
No children
M-Lint results
No M-Lint messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in file31
Non-code lines (comments, blank lines)11
Code lines (lines that can run)20
Code lines that did run12
Code lines that did not run8
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-2003 The MathWorks, Inc.
9 % $Revision $ $Date: 2004/04/10 23:28:36 $
10
< 0.01 313 11 args = varargin;
< 0.01 313 12 nargs = nargin;
< 0.01 313 13 ax=[];
313 14 if (nargs > 0) && (numel(args{1}) == 1) && ...
15 ishandle(args{1}) && strcmp(get(args{1},'type'),'axes')
17 16 ax = args{1};
17 17 args = args(2:end);
< 0.01 17 18 nargs = nargs-1;
17 19 end
313 20 if nargs > 0
313 21 inds = find(strcmpi('parent',args));
0.03 313 22 if ~isempty(inds)
23 inds = unique([inds inds+1]);
24 pind = inds(end);
25 if nargs <= pind && ishandle(args{pind})
26 ax = args{pind};
27 args(inds) = [];
28 nargs = length(args);
29 end
30 end
0.02 313 31 end