mustBeNonnegative
Validate that value is nonnegative
Syntax
Description
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
.
Examples
Input Arguments
Tips
mustBeNonnegative
is designed to be used for property and function argument validation.
Extended Capabilities
Version History
Introduced in R2017a