FUNCTION REFERENCE
mustBeNonpositive
Validate that value is nonpositive.
Validate that value is nonpositive.
Syntax
mustBeNonpositive(A)Throws an error if any element of A is not a real, nonpositive number.
Example
mustBeNonpositive([0 -1])Differences from MATLAB: Duration inputs are not supported.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.