time | Calls | line |
|---|
| | 1 | function mustBeFinite(A)
|
| | 2 | %MUSTBEFINITE Validate that value is finite
|
| | 3 | % MUSTBEFINITE(A) throws an error if A contains nonfinite values.
|
| | 4 | % MATLAB calls isfinite to determine if A is finite.
|
| | 5 | %
|
| | 6 | % Class support:
|
| | 7 | % All numeric classes, logical, char
|
| | 8 | % MATLAB classes that define a isfinite method.
|
| | 9 | %
|
| | 10 | % See also ISFINITE.
|
| | 11 |
|
| | 12 | % Copyright 2019-2020 The MathWorks, Inc.
|
| | 13 |
|
< 0.001 | 6 | 14 | if ~all(isfinite(A),'all')
|
| | 15 | throwAsCaller(createValidatorException('MATLAB:validators:mustBeFinite'));
|
< 0.001 | 6 | 16 | end
|
< 0.001 | 6 | 17 | end
|
Other subfunctions in this file are not included in this listing.