mustBeNonpositive
Validate that value is nonpositive
Syntax
Description
mustBeNonpositive(
throws an error if value
)value
is positive. Values are positive when they are greater than zero. This function does not return a value.
mustBeNonpositive
calls these functions to determine if the input is not positive:
Class support: All numeric classes, logical
, and MATLAB® classes that overload the functions called by mustBeNonpositive
.
Examples
Input Arguments
Tips
mustBeNonpositive
is designed to be used for property and function argument validation.
Extended Capabilities
Version History
Introduced in R2017a