mustBeNonNan
Validate that input contains NaN
Syntax
Description
mustBeNonNan(
throws an error if
value
)value
contains NaN
. This function does not return a value.
mustBeNonNan
calls the anynan
function to determine if the input contains NaN
.
Class support: All numeric classes, logical
,
char
, duration
,
calendarDuration
, and MATLAB® classes that overload anynan
or
isnan
.
Examples
Input Arguments
Tips
mustBeNonNan
is designed to be used for property and function argument validation.