This is a static copy of a profile reportHome
num2str>handleNumericPrecision (2 calls, 0.000 sec)
Generated 05-Aug-2011 13:00:41 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/strfun/num2str.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
num2str | function | 2 |
Lines where the most time was spent
No measurable time spent in this functionLine Number | Code | Calls | Total Time | % Time | Time Plot |
199 | end | 2 | 0 s | 0% |  |
192 | f = ''; | 2 | 0 s | 0% |  |
191 | forceWidth = 0; | 2 | 0 s | 0% |  |
190 | s = convertUsingRecycledSprint... | 2 | 0 s | 0% |  |
189 | if isreal(x) | 2 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Children (called functions)
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
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 % |
Function listing
time calls line
188 function [s, forceWidth, f] = handleNumericPrecision(x, precision)
2 189 if isreal(x)
2 190 s = convertUsingRecycledSprintf(x, precision);
2 191 forceWidth = 0;
2 192 f = '';
193 else
194 floatFieldExtra = 6;
195 s = '';
196 forceWidth = precision+floatFieldExtra;
197 f = sprintf('%%.%dg', precision);
198 end
2 199 end
Other subfunctions in this file are not included in this listing.