mustBeLessThan
Validate that value is less than another value
Syntax
Description
mustBeLessThan(
throws an error if any elements in value
,c
)value
are greater than or equal to the scalar c
. This function does not return a value.
mustBeLessThan
calls these functions to determine if value
is less than c
:
Class support: All numeric classes, logical
, and MATLAB® classes that overload the functions called by mustBeLessThan
.
This function ignores empty values in the first input argument. Therefore, no error is thrown when the property or function argument value is empty.
Examples
Input Arguments
Tips
mustBeLessThan
is designed to be used for property and function argument validation.
Extended Capabilities
Version History
Introduced in R2017a