This is a static copy of a profile report

Home

optimset>nonNegInteger (26 calls, 0.000 sec)
Generated 14-Nov-2016 07:47:11 using cpu time.
subfunction in file /usr/local/MATLAB/MATLAB_Production_Server/R2015a/toolbox/matlab/optimfun/optimset.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
optimset>checkfieldsubfunction26
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
359
end
260 s0%
358
errmsg = '';
260 s0%
357
errid = '';
260 s0%
356
else
260 s0%
348
if ~valid
260 s0%
All other lines  0 s0%
Totals  0 s0% 
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
 342 
function [valid, errmsg, errid] = nonNegInteger(field,value,string)
 343 
% Any nonnegative real integer scalar or sometimes a special string
     26 
 344 
valid =  isreal(value) && isscalar(value) && (value >= 0) && value == floor(value) ; 
     26 
 345 
if nargin > 2 
     26 
 346 
    valid = valid || isequal(value,string); 
     26 
 347 
end 
     26 
 348 
if ~valid 
 349 
    if ischar(value)
 350 
        errid = 'MATLAB:optimset:nonNegIntegerStringType';
 351 
        errmsg = getString(message('MATLAB:optimoptioncheckfield:nonNegIntegerStringType',field));
 352 
    else
 353 
        errid = 'MATLAB:optimset:notANonNegInteger';
 354 
        errmsg = getString(message('MATLAB:optimoptioncheckfield:notANonNegInteger',field));
 355 
    end
     26 
 356 
else 
     26 
 357 
    errid = ''; 
     26 
 358 
    errmsg = ''; 
     26 
 359 
end 

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