Lines where the most time was spent No measurable time spent in this function
Line Number | Code | Calls | Total Time | % Time | Time Plot |
80 | ok = true; | 1 | 0 s | 0% |  |
79 | STR2NUM_VaR = eval(STR2NUM_StR... | 1 | 0 s | 0% |  |
78 | try | 1 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Children (called functions)
No children
Code Analyzer resultsCoverage resultsShow coverage for parent directory
Total lines in function | 11 |
Non-code lines (comments, blank lines) | 4 |
Code lines (lines that can run) | 7 |
Code lines that did run | 3 |
Code lines that did not run | 4 |
Coverage (did run/can run) | 42.86 % |
Function listingtime | calls | line |
---|
| | 74 | function [STR2NUM_VaR,ok] = protected_conversion(STR2NUM_StR)
|
| | 75 | % Try to convert the string into a number. If this fails, return [] and ok=0
|
| | 76 | % Protects variables in STR2NUM from "variables" in s.
|
| | 77 |
|
| 1 | 78 | try
|
| 1 | 79 | STR2NUM_VaR = eval(STR2NUM_StR);
|
| 1 | 80 | ok = true;
|
| | 81 | catch exception %#ok
|
| | 82 | STR2NUM_VaR = [];
|
| | 83 | ok = false;
|
| | 84 | end
|