This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
371 | return; | 14 | 0 s | 0% |  |
370 | retval = ''; | 14 | 0 s | 0% |  |
369 | if ~builtin('isnumeric', under... | 14 | 0 s | 0% |  |
364 | if isa(var, 'timeseries') | 14 | 0 s | 0% |  |
363 | isTimeseries = false; | 14 | 0 s | 0% |  |
All other lines | | | 0.011 s | 100.0% |  |
Totals | | | 0.011 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 30 |
Non-code lines (comments, blank lines) | 7 |
Code lines (lines that can run) | 23 |
Code lines that did run | 6 |
Code lines that did not run | 17 |
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.