This is a static copy of a profile report

Home

workspacefunc>getStatObjectM (14 calls, 0.011 sec)
Generated 05-Aug-2011 13:01:11 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/codetools/workspacefunc.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
workspacefunc>getStatObjectJsubfunction14
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
371
return;
140 s0%
370
retval = '';
140 s0%
369
if ~builtin('isnumeric', under...
140 s0%
364
if isa(var, 'timeseries')
140 s0%
363
isTimeseries = false;
140 s0%
All other lines  0.011 s100.0%
Totals  0.011 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function30
Non-code lines (comments, blank lines)7
Code lines (lines that can run)23
Code lines that did run6
Code lines that did not run17
Coverage (did run/can run)26.09 %
Function listing
   time   calls  line
359 function retval = getStatObjectM(var, baseFunction, showNaNs)
360
14 361 underlyingVar = var;
362 % First handle timeseries, since they aren't numeric.
14 363 isTimeseries = false;
14 364 if isa(var, 'timeseries')
365 underlyingVar = get(var, 'Data');
366 isTimeseries = true;
367 end
368
14 369 if ~builtin('isnumeric', underlyingVar) || isempty(underlyingVar) || issparse(underlyingVar)
14 370 retval = '';
14 371 return;
372 end
373
374 if isinteger(underlyingVar) && ~strcmp(baseFunction, 'max') && ...
375 ~strcmp(baseFunction, 'min') && ~strcmp(baseFunction, 'range')
376 retval = '';
377 return;
378 end
379
380 if isTimeseries
381 if strcmp(baseFunction, 'range')
382 retval = local_ts_range(var);
383 else
384 retval = fevalPossibleMethod(baseFunction, var);
385 end
386 else
387 retval = feval(lookupStatFunction(baseFunction, showNaNs), var(:));
388 end

Other subfunctions in this file are not included in this listing.