Validate that value is floating-point array
mustBeFloat(
throws an error if value
)value
is not a floating-point array. The floating-point types are single
and double
, and subclasses of single
and double
. This function does not return a value.
mustBeFloat
calls the following function to determine if the input is a floating-point number:
Class support: All MATLAB® classes
mustBeFloat
is designed to be used for property and function argument validation.