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
c. This function does not return a value.
mustBeLessThan calls the
lt function to determine
if value is less than c. (since R2026a)
Class support: All numeric classes, logical, and MATLAB® classes that implement lt.
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
mustBeLessThanis designed to be used for property and function argument validation.