This is a static copy of a profile reportHome
axis>LocSetLimits (6 calls, 0.393 sec)
Generated 05-Aug-2011 13:03:47 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/graph2d/axis.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
axis | function | 6 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
208 | set(ax,... | 6 | 0.393 s | 100.0% |  |
228 | elseif (length(lims) == 6 &... | 6 | 0 s | 0% |  |
226 | if length(lims) == 4 &&... | 6 | 0 s | 0% |  |
220 | if length(lims) == 8 | 6 | 0 s | 0% |  |
214 | if length(lims) == 6 || length... | 6 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.393 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
ishold | function | 6 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0.393 s | 100.0% |  |
Totals | | | 0.393 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 31 |
Non-code lines (comments, blank lines) | 15 |
Code lines (lines that can run) | 16 |
Code lines that did run | 6 |
Code lines that did not run | 10 |
Coverage (did run/can run) | 37.50 % |
Function listing
time calls line
205 function LocSetLimits(ax,lims)
206
6 207 if (length(lims) == 4) || (length(lims) == 6 || (length(lims) == 8))
0.39 6 208 set(ax,...
209 'XLim',lims(1:2),...
210 'YLim',lims(3:4),...
211 'XLimMode','manual',...
212 'YLimMode','manual');
213
6 214 if length(lims) == 6 || length(lims) == 8
215 set(ax,...
216 'ZLim',lims(5:6),...
217 'ZLimMode','manual');
218 end
219
6 220 if length(lims) == 8
221 set(ax,...
222 'CLim',lims(7:8),...
223 'CLimMode','manual');
224 end
225
6 226 if length(lims) == 4 && ~ishold(ax)
227 set(ax,'view',[0 90]);
6 228 elseif (length(lims) == 6 && ...
229 isequal(get(ax,'View'),[0 90]) && ...
230 ~ishold(ax))
231 set(ax,'view',[-37.5,30]);
232 end
233 else
234 error('MATLAB:axis:WrongNumberElements', 'Vector must have 4, 6, or 8 elements.');
235 end
Other subfunctions in this file are not included in this listing.