get_reorder

get_reorder(A, idx, dim)

get_reorder() - Returns A with one of its dimensions indexed.

B = GET_REORDER(A, IDX, DIM)

Returns A(:, ..., :, IDX, :, ..., :), where DIM determines
in which dimension to place the IDX.

See also set_reorder().