I have a 4-D array array=[i,j,k,l]. For given values of i and j, I would like to know the minimum value in the array for any k or l, as well as the values of k and l for this value.
Basically I'd like something like [min_value, min_k, min_l]=min (array,[],3:4)
but min, as far as I can tell, doesn't take minima over multiple dimensions.
Thanks in advance.
Best Answer