This is a static copy of a profile report

Home

num2str>handleNumericPrecision (152 calls, 0.020 sec)
Generated 14-Nov-2016 07:47:08 using cpu time.
subfunction in file /usr/local/MATLAB/MATLAB_Production_Server/R2015a/toolbox/matlab/strfun/num2str.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
num2strfunction152
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
182
s = convertUsingRecycledSprint...
1520.020 s100.0%
191
end
1520 s0%
184
f = '';
1520 s0%
183
forceWidth = 0;
1520 s0%
181
if isreal(x)
1520 s0%
All other lines  0 s0%
Totals  0.020 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
num2str>convertUsingRecycledSprintfsubfunction1520.020 s100.0%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  0.020 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function12
Non-code lines (comments, blank lines)1
Code lines (lines that can run)11
Code lines that did run5
Code lines that did not run6
Coverage (did run/can run)45.45 %
Function listing
time 
calls 
 line
 180 
function [s, forceWidth, f] = handleNumericPrecision(x, precision)
    152 
 181 
    if isreal(x) 
  0.02 
    152 
 182 
        s = convertUsingRecycledSprintf(x, precision); 
    152 
 183 
        forceWidth = 0; 
    152 
 184 
        f = ''; 
 185 
    else
 186 
        floatFieldExtra = 6;
 187 
        s = '';
 188 
        forceWidth = precision+floatFieldExtra;
 189 
        f = sprintf('%%.%dg', precision);
 190 
    end
    152 
 191 
end 

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