FUNCTION REFERENCE
mustBeNegative
Validate that value is negative.
Validate that value is negative.
Syntax
mustBeNegative(A)Throws an error if any element of A is not a real, negative number.
Example
mustBeNegative([-1 -2])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.