This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
39 | h = get(ax,'YLabel'); | 250 | 0.437 s | 64.5% |  |
44 | set(h, 'FontAngle', get(ax, '... | 250 | 0.087 s | 12.9% |  |
57 | set(h, 'String', string, pvpai... | 250 | 0.066 s | 9.7% |  |
19 | [ax,args,nargs] = axescheck(va... | 500 | 0.066 s | 9.7% |  |
23 | return; | 250 | 0.011 s | 1.6% |  |
All other lines | | | 0.011 s | 1.6% |  |
Totals | | | 0.678 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
legendcolorbarlayout>doLayoutCB | subfunction | 2 | 0.055 s | 8.1% |  |
axescheck | function | 500 | 0.044 s | 6.5% |  |
gcf | function | 250 | 0.011 s | 1.6% |  |
ylabel | function | 250 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0.568 s | 83.9% |  |
Totals | | | 0.678 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 63 |
Non-code lines (comments, blank lines) | 36 |
Code lines (lines that can run) | 27 |
Code lines that did run | 20 |
Code lines that did not run | 7 |
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