This is a static copy of a profile report

Home

tabular.disp>getFloatFormats (Calls: 8, Time: 0.001 s)
Generated 16-Jul-2020 17:09:56 using performance time.
subfunction in file /Applications/MATLAB_R2020a.app/toolbox/matlab/datatypes/tabular/@tabular/disp.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
tabular.dispfunction8
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
436
case {'short' 'shortg' 'shorte...
80.000 s33.5%
435
switch lower(matlab.internal.d...
80.000 s31.4%
455
end
80.000 s1.1%
437
dblFmt  = '%.5g    ';
80.000 s1.1%
438
snglFmt = '%.5g    ';
80.000 s0.4%
All other lines  0.000 s32.4%
Totals  0.001 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function25
Non-code lines (comments, blank lines)4
Code lines (lines that can run)21
Code lines that did run6
Code lines that did not run15
Coverage (did run/can run)28.57 %
Function listing
time 
Calls 
 line
 431 
function [dblFmt,snglFmt] = getFloatFormats()
 432 
% Display for double/single will follow 'format long/short g/e' or 'format bank'
 433 
% from the command window. 'format long/short' (no 'g/e') is not supported
 434 
% because it often needs to print a leading scale factor.
< 0.001 
      8 
 435
switch lower(matlab.internal.display.format) 
< 0.001 
      8 
 436
case {'short' 'shortg' 'shorteng'} 
< 0.001 
      8 
 437
    dblFmt  = '%.5g    '; 
< 0.001 
      8 
 438
    snglFmt = '%.5g    '; 
 439 
case {'long' 'longg' 'longeng'}
 440 
    dblFmt  = '%.15g    ';
 441 
    snglFmt = '%.7g    ';
 442 
case 'shorte'
 443 
    dblFmt  = '%.4e    ';
 444 
    snglFmt = '%.4e    ';
 445 
case 'longe'
 446 
    dblFmt  = '%.14e    ';
 447 
    snglFmt = '%.6e    ';
 448 
case 'bank'
 449 
    dblFmt  = '%.2f    ';
 450 
    snglFmt = '%.2f    ';
 451 
otherwise % rat, hex, + fall back to shortg
 452 
    dblFmt  = '%.5g    ';
 453 
    snglFmt = '%.5g    ';
< 0.001 
      8 
 454
end 
< 0.001 
      8 
 455
end 

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