This is a static copy of a profile report

Home

str2num>protected_conversion (46 calls, 0.000 sec)
Generated 14-Nov-2016 07:47:09 using cpu time.
subfunction in file /usr/local/MATLAB/MATLAB_Production_Server/R2015a/toolbox/matlab/strfun/str2num.m
Copy to new window for comparing multiple runs

Parents (calling functions)

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

Line NumberCodeCallsTotal Time% TimeTime Plot
80
ok = true;
460 s0%
79
STR2NUM_VaR = eval(STR2NUM_StR...
460 s0%
78
try
460 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
Coverage results
Show coverage for parent directory
Total lines in function11
Non-code lines (comments, blank lines)4
Code lines (lines that can run)7
Code lines that did run3
Code lines that did not run4
Coverage (did run/can run)42.86 %
Function listing
time 
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 

     46 
  78 
try 
     46 
  79 
    STR2NUM_VaR = eval(STR2NUM_StR); 
     46 
  80 
    ok = true; 
  81 
catch exception %#ok
  82 
    STR2NUM_VaR = [];
  83 
    ok = false;
  84 
end