Validate that value is nonnegative
mustBeNonnegative(
throws an error if value
)value
is negative. This function does not return a value.
mustBeNonnegative
calls these functions to determine if the input is not negative:
Class support: All numeric classes, logical
, and MATLAB® classes that overload the functions called by mustBeNonnegative
.
mustBeNonnegative
is designed to be used for property and function argument validation.