time | Calls | line |
---|
| | 1 | function mustBeNumericOrLogical(A)
|
| | 2 | %MUSTBENUMERICORLOGICAL Validate that value is numeric or logical
|
| | 3 | % MUSTBENUMERICORLOGICAL(A) throws an error if A contains values that are
|
| | 4 | % not numeric or logical. MATLAB calls isnumeric to determine if A is
|
| | 5 | % numeric and calls islogical to determine if A is logical.
|
| | 6 | %
|
| | 7 | % See also: ISNUMERIC, ISLOGICAL.
|
| | 8 |
|
| | 9 | % Copyright 2016-2020 The MathWorks, Inc.
|
| | 10 |
|
< 0.001 | 3 | 11 | if ~isnumeric(A) && ~islogical(A)
|
| | 12 | throwAsCaller(createValidatorException('MATLAB:validators:mustBeNumericOrLogical'));
|
< 0.001 | 3 | 13 | end
|
< 0.001 | 3 | 14 | end
|
Other subfunctions in this file are not included in this listing.