mustBeLessThanOrEqual
Validate that value is less than or equal to another value
Description
mustBeLessThanOrEqual(
throws an error if any elements in value,c)value are greater than
c. This function does not return a value.
mustBeLessThanOrEqual
calls the le function to determine
if value is less than or equal to c. (since R2026a)
Class support: All numeric classes, logical, and MATLAB® classes that implement le.
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
mustBeLessThanOrEqualis designed to be used for property and function argument validation.