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
Function Name | Function Type | Calls |
num2str | function | 20 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
189 | end | 20 | 0 s | 0% | ![]() |
182 | f = ''; | 20 | 0 s | 0% | ![]() |
181 | forceWidth = 0; | 20 | 0 s | 0% | ![]() |
180 | s = convertUsingRecycledSprint... | 20 | 0 s | 0% | ![]() |
179 | if isreal(x) | 20 | 0 s | 0% | ![]() |
All other lines | 0 s | 0% | ![]() | ||
Totals | 0 s | 0% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
num2str>convertUsingRecycledSprintf | subfunction | 20 | 0 s | 0% | ![]() |
Self time (built-ins, overhead, etc.) | 0 s | 0% | ![]() | ||
Totals | 0 s | 0% |
Total lines in function | 12 |
Non-code lines (comments, blank lines) | 1 |
Code lines (lines that can run) | 11 |
Code lines that did run | 5 |
Code lines that did not run | 6 |
Coverage (did run/can run) | 45.45 % |
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.