This is a static copy of a profile report

Home

ylabel (500 calls, 0.678 sec)
Generated 05-Aug-2011 13:03:20 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graph2d/ylabel.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
packdfunction11
ylabelfunction250
plot_sourcesfunction3
genfig>plotdescriptionsubfunction128
genfigLoadfunction30
genfigAlpha>plotdescriptionsubfunction48
genfigPowerSpecfunction6
plot1overf>getStatsPlotssubfunction20
genfigRmsfunction4
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
39
h = get(ax,'YLabel');
2500.437 s64.5%
44
set(h, 'FontAngle',  get(ax, '...
2500.087 s12.9%
57
set(h, 'String', string, pvpai...
2500.066 s9.7%
19
[ax,args,nargs] = axescheck(va...
5000.066 s9.7%
23
return;
2500.011 s1.6%
All other lines  0.011 s1.6%
Totals  0.678 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
legendcolorbarlayout>doLayoutCBsubfunction20.055 s8.1%
axescheckfunction5000.044 s6.5%
gcffunction2500.011 s1.6%
ylabelfunction2500 s0%
Self time (built-ins, overhead, etc.)  0.568 s83.9%
Totals  0.678 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function63
Non-code lines (comments, blank lines)36
Code lines (lines that can run)27
Code lines that did run20
Code lines that did not run7
Coverage (did run/can run)74.07 %
Function listing
   time   calls  line
1 function hh = ylabel(varargin)
2 %YLABEL Y-axis label.
3 % YLABEL('text') adds text beside the Y-axis on the current axis.
4 %
5 % YLABEL('text','Property1',PropertyValue1,'Property2',PropertyValue2,...)
6 % sets the values of the specified properties of the ylabel.
7 %
8 % YLABEL(AX,...) adds the ylabel to the specified axes.
9 %
10 % H = YLABEL(...) returns the handle to the text object used as the label.
11 %
12 % See also XLABEL, ZLABEL, TITLE, TEXT.
13
14 % Copyright 1984-2010 The MathWorks, Inc.
15 % $Revision: 5.13.6.12 $ $Date: 2010/05/20 02:25:33 $
16
500 17 error(nargchk(1,inf,nargin,'struct'));
18
0.07 500 19 [ax,args,nargs] = axescheck(varargin{:});
500 20 if isempty(ax)
0.01 250 21 h = ylabel(gca,varargin{:});
250 22 if nargout > 0, hh = h; end
0.01 250 23 return;
24 end
25
250 26 if nargs > 1 && (rem(nargs-1,2) ~= 0)
27 error('MATLAB:ylabel:InvalidNumberOfInputs','Incorrect number of input arguments')
28 end
29
250 30 string = args{1};
250 31 if isempty(string), string=''; end;
250 32 pvpairs = args(2:end);
33
250 34 if isappdata(ax,'MWBYPASS_ylabel')
35 h = mwbypass(ax,'MWBYPASS_ylabel',string,pvpairs{:});
36
37 %---Standard behavior
250 38 else
0.44 250 39 h = get(ax,'YLabel');
40
250 41 if feature('hgUsingMATLABClasses') == 0
42 %Over-ride text objects default font attributes with
43 %the Axes' default font attributes.
0.09 250 44 set(h, 'FontAngle', get(ax, 'FontAngle'), ...
45 'FontName', get(ax, 'FontName'), ...
46 'FontUnits', get(ax, 'FontUnits'),...
47 'FontSize', get(ax, 'FontSize'), ...
48 'FontWeight', get(ax, 'FontWeight'));
49 else
50 set(h,'FontAngleMode','auto',...
51 'FontNameMode','auto',...
52 'FontUnitsMode','auto',...
53 'FontSizeMode','auto',...
54 'FontWeightMode','auto');
55 end
56
0.07 250 57 set(h, 'String', string, pvpairs{:});
58
250 59 end
60
250 61 if nargout > 0
250 62 hh = h;
250 63 end