How can one access multiple elements in a cell array of vectors or matrices? For instance, suppose one has the following cell array:
c={[1 2 3] [4 5 6 7]};
One can access elements 2, 6, and 7 as follows:
[c{1}(2) c{2}(3) c{2}(4)]
Suppose one instead has two vectors with indexes to the desired elements, the first vector of which contains the cell index and the second of which contains the vector index of the desired elements.
For instance, to access the above three elements, one might want to use the "cell index vector" ci=[1 2 2] and the "vector index vector" vi=[2 3 4] in some manner akin to the following:
c{ci}(vi)
How can one perform such a nested access without resorting to loops?