This is a static copy of a profile report Home
Function details for str2num>protected_conversion This 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 Name Function Type Calls str2num function 4
Lines where the most time was spent
Line Number Code Calls Total Time % Time Time Plot 83 STR2NUM_VaR = eval(STR2NUM_StR... 4 0.000 s 56.3% 84 ok = true; 4 0.000 s 21.6% 88 end 4 0.000 s 15.3% 82 try 4 0.000 s 0.7% All other lines 0.000 s 6.1% Totals 0.000 s 100%
Children (called functions) No children
Code Analyzer results
Coverage results Show coverage for parent directoryTotal lines in function 11 Non-code lines (comments, blank lines) 4 Code lines (lines that can run) 7 Code lines that did run 4 Code lines that did not run 3 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.