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 allfinite
function to determine if the input is finite.
Class support: All numeric classes, logical,
char, and MATLAB® classes that overload allfinite or
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
mustBeFiniteis designed to be used for property and function argument validation.