This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
335 | end | 3440 | 0.011 s | 25.0% |  |
333 | errid = ''; | 3440 | 0.011 s | 25.0% |  |
320 | valid = isreal(value) &&a... | 3440 | 0.011 s | 25.0% |  |
334 | errmsg = ''; | 3440 | 0 s | 0% |  |
332 | else | 3440 | 0 s | 0% |  |
All other lines | | | 0.011 s | 25.0% |  |
Totals | | | 0.044 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 18 |
Non-code lines (comments, blank lines) | 2 |
Code lines (lines that can run) | 16 |
Code lines that did run | 9 |
Code lines that did not run | 7 |
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.