time | Calls | line |
---|
| | 285 | function maxStringLength = validateMaxStringLength(maxStringLength, maxArraySize)
|
| | 286 | % Validate MAXSTRINGLENGTH, which must be a scalar, non-negative integer.
|
< 0.001 | 8 | 287 | if ~isnumeric(maxStringLength) || ~isscalar(maxStringLength) ...
|
| 8 | 288 | || ~isreal(maxStringLength) || isnan(maxStringLength) ...
|
| 8 | 289 | || floor(maxStringLength) ~= maxStringLength || maxStringLength < 0
|
| | 290 | error(message('MATLAB:makeUniqueStrings:BadMaxStringLength'));
|
< 0.001 | 8 | 291 | end
|
| | 292 | % Cap maxStringLength at maxArraySize.
|
< 0.001 | 8 | 293 | maxStringLength = min(maxStringLength, maxArraySize);
|
< 0.001 | 8 | 294 | end
|
Other subfunctions in this file are not included in this listing.