This is a static copy of a profile reportHome
title (466 calls, 0.874 sec)
Generated 05-Aug-2011 13:03:20 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graph2d/title.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 |
42 | h = get(ax,'Title'); | 233 | 0.459 s | 52.5% |  |
55 | set(h, 'String', string, pvpai... | 233 | 0.175 s | 20.0% |  |
47 | set(h, 'FontAngle', get(ax, '... | 233 | 0.087 s | 10.0% |  |
20 | [ax,args,nargs] = axescheck(va... | 466 | 0.055 s | 6.2% |  |
23 | h = title(gca,varargin{:}); | 233 | 0.033 s | 3.7% |  |
All other lines | | | 0.066 s | 7.5% |  |
Totals | | | 0.874 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
legendcolorbarlayout>doLayoutCB | subfunction | 8 | 0.208 s | 23.8% |  |
axescheck | function | 466 | 0.033 s | 3.7% |  |
gcf | function | 233 | 0.011 s | 1.3% |  |
title | function | 233 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0.623 s | 71.2% |  |
Totals | | | 0.874 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 61 |
Non-code lines (comments, blank lines) | 36 |
Code lines (lines that can run) | 25 |
Code lines that did run | 21 |
Code lines that did not run | 4 |
Coverage (did run/can run) | 84.00 % |
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-2010 The MathWorks, Inc.
15 % $Revision: 5.14.6.11 $ $Date: 2010/05/20 02:25:31 $
16
17
0.03 466 18 error(nargchk(1,inf,nargin,'struct'));
19
0.05 466 20 [ax,args,nargs] = axescheck(varargin{:});
466 21 if isempty(ax)
22 % call title recursively or call method of Axes subclass
0.03 233 23 h = title(gca,varargin{:});
233 24 if nargout > 0, hh = h; end
233 25 return;
26 end
27
233 28 if nargs > 1 && (rem(nargs-1,2) ~= 0)
29 error('MATLAB:title:InvalidNumberOfInputs','Incorrect number of input arguments')
30 end
31
233 32 string = args{1};
233 33 if isempty(string), string=''; end;
233 34 pvpairs = args(2:end);
35
36 %---Check for bypass option
233 37 if isappdata(ax,'MWBYPASS_title')
38 h = mwbypass(ax,'MWBYPASS_title',string,pvpairs{:});
39
40 %---Standard behavior
233 41 else
0.46 233 42 h = get(ax,'Title');
43
0.01 233 44 if feature('hgUsingMATLABClasses') == 0
45 %Over-ride text objects default font attributes with
46 %the Axes' default font attributes.
0.09 233 47 set(h, 'FontAngle', get(ax, 'FontAngle'), ...
48 'FontName', get(ax, 'FontName'), ...
49 'FontUnits', get(ax, 'FontUnits'), ...
50 'FontSize', get(ax, 'FontSize'), ...
51 'FontWeight', get(ax, 'FontWeight'), ...
52 'Rotation', 0);
233 53 end
54
0.17 233 55 set(h, 'String', string, pvpairs{:});
56
233 57 end
58
233 59 if nargout > 0
233 60 hh = h;
0.01 233 61 end