time | calls | line |
---|
| | 363 | function [valid, errmsg, errid] = displayType(field,value)
|
| | 364 | % One of these strings: on, off, none, iter, final, notify
|
| 26 | 365 | valid = ischar(value) && any(strcmp(value, ...
|
| | 366 | {'on';'off';'none';'iter';'iter-detailed';'final';'final-detailed';'notify';'notify-detailed';'testing';'simplex'}));
|
| 26 | 367 | if ~valid
|
| | 368 | errid = 'MATLAB:optimset:notADisplayType';
|
| | 369 | errmsg = getString(message(errid, field));
|
| 26 | 370 | else
|
| 26 | 371 | errid = '';
|
| 26 | 372 | errmsg = '';
|
| 26 | 373 | end
|
Other subfunctions in this file are not included in this listing.