Main Content
mustBeFinite
Validate that value is finite
Syntax
Description
mustBeFinite(
throws an error if value
)value
is not finite. A numeric value is finite if it is not NaN
or Inf
. This function does not return a value.
mustBeFinite
calls the following function to determine if the input is finite:
Class support: All numeric classes, logical
, char
, and MATLAB® classes that overload isfinite
.
This function ignores input arguments that are empty values. Therefore, no error is thrown when the property or function argument value is empty.
Examples
Input Arguments
Tips
mustBeFinite
is designed to be used for property and function argument validation.
Extended Capabilities
Version History
Introduced in R2017a