This is a static copy of a profile report

Home

str2num>protected_conversion (1 call, 0.000 sec)
Generated 04-Aug-2014 13:05:17 using cpu time.
subfunction in file /share/apps/matlabr2014a/toolbox/matlab/strfun/str2num.m
Copy to new window for comparing multiple runs

Parents (calling functions)

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

Line NumberCodeCallsTotal Time% TimeTime Plot
80
ok = true;
10 s0%
79
STR2NUM_VaR = eval(STR2NUM_StR...
10 s0%
78
try
10 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 

      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