This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
packdfunction8
titlefunction233
plot_sourcesfunction1
genfig>plotdescriptionsubfunction120
genfigLoadfunction30
genfigAlpha>plotdescriptionsubfunction48
genfigPowerSpecfunction6
plot1overf>getStatsPlotssubfunction20
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
42
h = get(ax,'Title');
2330.459 s52.5%
55
set(h, 'String', string, pvpai...
2330.175 s20.0%
47
set(h, 'FontAngle',  get(ax, '...
2330.087 s10.0%
20
[ax,args,nargs] = axescheck(va...
4660.055 s6.2%
23
h = title(gca,varargin{:}); 
2330.033 s3.7%
All other lines  0.066 s7.5%
Totals  0.874 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
legendcolorbarlayout>doLayoutCBsubfunction80.208 s23.8%
axescheckfunction4660.033 s3.7%
gcffunction2330.011 s1.3%
titlefunction2330 s0%
Self time (built-ins, overhead, etc.)  0.623 s71.2%
Totals  0.874 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function61
Non-code lines (comments, blank lines)36
Code lines (lines that can run)25
Code lines that did run21
Code lines that did not run4
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