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