Validate that value is greater than another value
mustBeGreaterThan(
throws an error if any elements invalue
,c
)value
are less than or equal to the scalarc
。这个函数并不return a value.
mustBeGreaterThan
calls these functions to determine ifvalue
is greater thanc
:
Class support: All numeric classes,logical
, and MATLAB®classes that overload the functions called bymustBeGreaterThan
。
This function ignores empty values in the first input argument. Therefore, no error is thrown when the property or function argument value is empty.
mustBeGreaterThan
is designed to be used for property and function argument validation.