Say I have:
M = [1, 2; 3, 4]
v = [1, 2];
M(v) gives [1 3]
but I want to get is M(1, 2)
= 3.
Is there a way to do it? Of course, I could do M(v(1), v(2))
but I need the thing to work for M an N-dimensional array and v
a vector of length N.
Thanks very much