arginchk

Version:

Determines whether an input argument is in a given range.

Syntax

d = arginchk(a, b, c)
d = arginchk(a, b, c, 'string')
Legacy name: nargchk

a

Lower end of the range. a is a positive integer.

b

Upper end of the range. b is a positive integer.

c

Positive integer.

'string'

Currently no functionality.

d

Empty string if c is between a and b, inclusive. Otherwise, arginchk returns an error text.

D = arginchk(2, 5, 6)

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices