This is a static copy of a profile report

Home

num2str>handleNumericPrecision (20 calls, 0.000 sec)
Generated 04-Aug-2014 13:05:19 using cpu time.
subfunction in file /share/apps/matlabr2014a/toolbox/matlab/strfun/num2str.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
num2strfunction20
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
189
end
200 s0%
182
f = '';
200 s0%
181
forceWidth = 0;
200 s0%
180
s = convertUsingRecycledSprint...
200 s0%
179
if isreal(x)
200 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
num2str>convertUsingRecycledSprintfsubfunction200 s0%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  0 s0% 
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
 178 
function [s, forceWidth, f] = handleNumericPrecision(x, precision)
     20 
 179 
    if isreal(x) 
     20 
 180 
        s = convertUsingRecycledSprintf(x, precision); 
     20 
 181 
        forceWidth = 0; 
     20 
 182 
        f = ''; 
 183 
    else
 184 
        floatFieldExtra = 6;
 185 
        s = '';
 186 
        forceWidth = precision+floatFieldExtra;
 187 
        f = sprintf('%%.%dg', precision);
 188 
    end
     20 
 189 
end 

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