This is a static copy of a profile report

Home

Function details for str2num>protected_conversionThis is a static copy of a profile report

Home

str2num>protected_conversion (Calls: 4, Time: 0.000 s)
Generated 19-Jun-2021 04:39:09 using performance time.
subfunction in file /nfs/linux/matlab-2019b/toolbox/matlab/strfun/str2num.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
str2numfunction4
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
83
STR2NUM_VaR = eval(STR2NUM_StR...
40.000 s56.3%
84
ok = true;
40.000 s21.6%
88
end
40.000 s15.3%
82
try
40.000 s0.7%
All other lines  0.000 s6.1%
Totals  0.000 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 run4
Code lines that did not run3
Coverage (did run/can run)57.14 %
Function listing
time 
Calls 
 line
  78 
function [STR2NUM_VaR,ok] = protected_conversion(STR2NUM_StR)
  79 
% Try to convert the string into a number.  If this fails, return [] and ok=0
  80 
% Protects variables in STR2NUM from "variables" in s.
  81 

< 0.001 
      4 
  82
try 
< 0.001 
      4 
  83
    STR2NUM_VaR = eval(STR2NUM_StR); 
< 0.001 
      4 
  84
    ok = true; 
  85 
catch exception %#ok
  86 
    STR2NUM_VaR = [];
  87 
    ok = false;
< 0.001 
      4 
  88
end 

Other subfunctions in this file are not included in this listing.