This is a static copy of a profile report

Home

optimset>nonNegInteger (3440 calls, 0.044 sec)
Generated 05-Aug-2011 13:03:53 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/funfun/optimset.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
optimset>checkfieldsubfunction3440
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
335
end
34400.011 s25.0%
333
errid = '';
34400.011 s25.0%
320
valid =  isreal(value) &&a...
34400.011 s25.0%
334
errmsg = '';
34400 s0%
332
else
34400 s0%
All other lines  0.011 s25.0%
Totals  0.044 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function18
Non-code lines (comments, blank lines)2
Code lines (lines that can run)16
Code lines that did run9
Code lines that did not run7
Coverage (did run/can run)56.25 %
Function listing
   time   calls  line
318 function [valid, errmsg, errid] = nonNegInteger(field,value,string)
319 % Any nonnegative real integer scalar or sometimes a special string
0.01 3440 320 valid = isreal(value) && isscalar(value) && (value >= 0) && value == floor(value) ;
3440 321 if nargin > 2
3440 322 valid = valid || isequal(value,string);
3440 323 end
3440 324 if ~valid
325 if ischar(value)
326 errid = 'MATLAB:funfun:optimset:nonNegInteger:notANonNegInteger';
327 errmsg = sprintf('Invalid value for OPTIONS parameter %s: must be a real non-negative integer (not a string).',field);
328 else
329 errid = 'MATLAB:funfun:optimset:nonNegInteger:notANonNegInteger';
330 errmsg = sprintf('Invalid value for OPTIONS parameter %s: must be a real non-negative integer.',field);
331 end
3440 332 else
0.01 3440 333 errid = '';
3440 334 errmsg = '';
0.01 3440 335 end

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