I have an assignment like C = A(B) in a loop that size and shape of B change in every iteration. I need the size of C to be exactly like B. Documentation describes array indexing like this:
If you index into a vector with another vector, the orientation of the indexed vector is honored for the output
If you index into a vector with a nonvector, the shape of the indices is honored
So how can I keep shape and orientation of indices in both cases?