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