Convert numeric indices to logical

.ixNumericToLogical(idx, len, msg)

Arguments

idx

a numeric containing indices

len

a numeric stating the maximum possible index

msg

a character stating the error message to produce when indices are out of bounds

Value

a logical containing indices