This is a static copy of a profile report

Home

str2num>protected_conversion (52 calls, 0.000 sec)
Generated 05-Aug-2011 13:00:29 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/strfun/str2num.m
Copy to new window for comparing multiple runs

Parents (calling functions)

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

Line NumberCodeCallsTotal Time% TimeTime Plot
81
ok = true;
520 s0%
80
STR2NUM_VaR = eval(STR2NUM_StR...
520 s0%
79
try
520 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
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
75 function [STR2NUM_VaR,ok] = protected_conversion(STR2NUM_StR)
76 % Try to convert the string into a number. If this fails, return [] and ok=0
77 % Protects variables in STR2NUM from "variables" in s.
78
52 79 try
52 80 STR2NUM_VaR = eval(STR2NUM_StR);
52 81 ok = true;
82 catch exception %#ok
83 STR2NUM_VaR = [];
84 ok = false;
85 end