This is a static copy of a profile reportHome
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 Name | Function Type | Calls |
title | M-function | 34 |
hold | M-function | 279 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
22 | if ~isempty(inds) | 313 | 0.031 s | 50.0% |  |
31 | end | 313 | 0.016 s | 25.0% |  |
11 | args = varargin; | 313 | 0.001 s | 1.3% |  |
13 | ax=[]; | 313 | 0.001 s | 0.9% |  |
12 | nargs = nargin; | 313 | 0.000 s | 0.3% |  |
Other lines & overhead | | | 0.014 s | 22.5% |  |
Totals | | | 0.063 s | 100% | |
Children (called functions)
No childrenM-Lint results
No M-Lint messages.Coverage results
[ Show coverage for parent directory ]
Total lines in file | 31 |
Non-code lines (comments, blank lines) | 11 |
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-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