This is a static copy of a profile report

Home

str2num>protected_conversion (Calls: 3, Time: 0.003 sec)
Generated 28-May-2016 14:58:45 using performance time.
subfunction in file /home/johs/MATLAB/R2015b/toolbox/matlab/strfun/str2num.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
str2numfunction3
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
79
STR2NUM_VaR = eval(STR2NUM_StR...
30.002 s82.9%
80
ok = true;
30.000 s6.1%
78
try
30.000 s3.6%
All other lines  0.000 s7.3%
Totals  0.003 s100% 
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 

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