This is a static copy of a profile reportHome
xlim (4 calls, 0.011 sec)
Generated 05-Aug-2011 13:03:27 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graph3d/xlim.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
genfigRms | function | 4 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
44 | set(ax,'xlim',val); | 4 | 0.011 s | 100.0% |  |
46 | end | 4 | 0 s | 0% |  |
45 | end | 4 | 0 s | 0% |  |
43 | else | 4 | 0 s | 0% |  |
37 | if ischar(val) | 4 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.011 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
gcf | function | 4 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0.011 s | 100.0% |  |
Totals | | | 0.011 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 46 |
Non-code lines (comments, blank lines) | 17 |
Code lines (lines that can run) | 29 |
Code lines that did run | 15 |
Code lines that did not run | 14 |
Coverage (did run/can run) | 51.72 % |
Function listing
time calls line
1 function a = xlim(arg1, arg2)
2 %XLIM X limits.
3 % XL = XLIM gets the x limits of the current axes.
4 % XLIM([XMIN XMAX]) sets the x limits.
5 % XLMODE = XLIM('mode') gets the x limits mode.
6 % XLIM(mode) sets the x limits mode.
7 % (mode can be 'auto' or 'manual')
8 % XLIM(AX,...) uses axes AX instead of current axes.
9 %
10 % XLIM sets or gets the XLim or XLimMode property of an axes.
11 %
12 % See also PBASPECT, DASPECT, YLIM, ZLIM.
13
14 % Copyright 1984-2005 The MathWorks, Inc.
15 % $Revision: 1.7.4.2 $ $Date: 2008/05/23 15:35:38 $
16
4 17 if nargin == 0
18 a = get(gca,'xlim');
4 19 else
4 20 if isscalar(arg1) && ishghandle(arg1,'axes')
21 ax = arg1;
22 if nargin==2
23 val = arg2;
24 else
25 a = get(ax,'xlim');
26 return
27 end
4 28 else
4 29 if nargin==2
30 error('MATLAB:xlim:InvalidNumberArguments', 'Wrong number of arguments')
4 31 else
4 32 ax = gca;
4 33 val = arg1;
4 34 end
4 35 end
36
4 37 if ischar(val)
38 if(strcmp(val,'mode'))
39 a = get(ax,'xlimmode');
40 else
41 set(ax,'xlimmode',val);
42 end
4 43 else
0.01 4 44 set(ax,'xlim',val);
4 45 end
4 46 end