This is a static copy of a profile reportHome
title (34 calls, 0.047 sec)
Generated 15-Mar-2007 12:01:54 using real time.
M-function in file C:\Program Files\MATLAB71\toolbox\matlab\graph2d\title.m
[Copy to new window for comparing multiple runs]
Function is recursive. Timing may be inaccurate
Parents (calling functions)
Lines where the most time was spent
Function is recursive. Line timing may be inaccurate.
Line Number | Code | Calls | Total Time | % Time | Time Plot |
23 | h = title(gca,varargin{:}); | 17 | 0.047 s | 50.0% |  |
45 | set(h, 'FontAngle', get(ax, '... | 17 | 0.031 s | 33.3% |  |
36 | if isappdata(ax,'MWBYPASS_titl... | 17 | 0.016 s | 16.7% |  |
53 | if nargout > 0 | 17 | 0.000 s | 0.0% |  |
24 | if nargout > 0, hh = h; end | 17 | 0.000 s | 0.0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.094 s | 100% | |
Children (called functions)
Function is recursive. Child timing may be inaccurate.
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
title | M-function | 17 | 0.047 s | 50.0% |  |
axescheck | M-function | 34 | 0 s | 0% |  |
gca | M-function | 17 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0 s | 0% |  |
Totals | | | 0.047 s | 100% | |
M-Lint results
No M-Lint messages.Coverage results
[ Show coverage for parent directory ]
Total lines in file | 55 |
Non-code lines (comments, blank lines) | 34 |
Code lines (lines that can run) | 21 |
Code lines that did run | 17 |
Code lines that did not run | 4 |
Coverage (did run/can run) | 80.95 % |
Function listing
time calls line
1 function hh = title(varargin)
2 %TITLE Graph title.
3 % TITLE('text') adds text at the top of the current axis.
4 %
5 % TITLE('text','Property1',PropertyValue1,'Property2',PropertyValue2,...)
6 % sets the values of the specified properties of the title.
7 %
8 % TITLE(AX,...) adds the title to the specified axes.
9 %
10 % H = TITLE(...) returns the handle to the text object used as the title.
11 %
12 % See also XLABEL, YLABEL, ZLABEL, TEXT.
13
14 % Copyright 1984-2003 The MathWorks, Inc.
15 % $Revision: 5.14.6.5 $ $Date: 2004/04/10 23:26:37 $
16
17
34 18 error(nargchk(1,inf,nargin));
19
34 20 [ax,args,nargs] = axescheck(varargin{:});
34 21 if isempty(ax)
22 % call title recursively or call method of Axes subclass
0.05 17 23 h = title(gca,varargin{:});
< 0.01 17 24 if nargout > 0, hh = h; end
17 25 return;
26 end
27
17 28 if nargs > 1 && (rem(nargs-1,2) ~= 0)
29 error('Incorrect number of input arguments')
30 end
31
17 32 string = args{1};
17 33 pvpairs = args(2:end);
34
35 %---Check for bypass option
0.02 17 36 if isappdata(ax,'MWBYPASS_title')
37 h = mwbypass(ax,'MWBYPASS_title',string,pvpairs{:});
38
39 %---Standard behavior
17 40 else
17 41 h = get(ax,'title');
42
43 %Over-ride text objects default font attributes with
44 %the Axes' default font attributes.
0.03 17 45 set(h, 'FontAngle', get(ax, 'FontAngle'), ...
46 'FontName', get(ax, 'FontName'), ...
47 'FontSize', get(ax, 'FontSize'), ...
48 'FontWeight', get(ax, 'FontWeight'), ...
49 'Rotation', 0, ...
50 'string', string, pvpairs{:});
17 51 end
52
< 0.01 17 53 if nargout > 0
< 0.01 17 54 hh = h;
< 0.01 17 55 end