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 the scalar c
. This function does not return a value.
mustBeLessThanOrEqual
calls these functions to determine if value
is less than or equal to c
:
Class support: All numeric classes, logical
, and MATLAB® classes that overload the functions called by mustBeLessThanOrEqual
.
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
mustBeLessThanOrEqual
is designed to be used for property and function argument validation.
Extended Capabilities
Version History
Introduced in R2017a