Navigation

Operators and Keywords

Function List:

C++ API

: val = allow_noninteger_range_as_index ()
: old_val = allow_noninteger_range_as_index (new_val)
: allow_noninteger_range_as_index (new_val, "local")

Query or set the internal variable that controls whether non-integer ranges are allowed as indices.

This might be useful for MATLAB compatibility; however, it is still not entirely compatible because MATLAB treats the range expression differently in different contexts.

When called from inside a function with the "local" option, the variable is changed locally for the function and any subroutines it calls. The original variable value is restored when exiting the function.

Package: octave