FUNCTION REFERENCE
mustBeInRange
Validate that value is in a specified range.
Validate that value is in a specified range.
Syntax
mustBeInRange(A, lower, upper); mustBeInRange(A, lower, upper, bounds)Throws an error if any element of A is outside [lower, upper]. Optional bounds flag may be 'inclusive', 'exclusive', 'exclude-lower', or 'exclude-upper'.
Example
mustBeInRange([0 0.5 1], 0, 1)Differences from MATLAB: None.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.