mustBeFloat
Syntax
Description
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
Examples
Input Arguments
Tips
mustBeFloat
is designed to be used for property and function argument validation.
Extended Capabilities
Version History
Introduced in R2020b