This is a static copy of a profile report

Home

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 NameFunction TypeCalls
axisfunction6
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
208
set(ax,...
60.393 s100.0%
228
elseif (length(lims) == 6 &...
60 s0%
226
if length(lims) == 4 &&...
60 s0%
220
if length(lims) == 8
60 s0%
214
if length(lims) == 6 || length...
60 s0%
All other lines  0 s0%
Totals  0.393 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
isholdfunction60 s0%
Self time (built-ins, overhead, etc.)  0.393 s100.0%
Totals  0.393 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function31
Non-code lines (comments, blank lines)15
Code lines (lines that can run)16
Code lines that did run6
Code lines that did not run10
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.