In MATLAB, I have a multidimensional array of floats, A , with sizes m ; that is, his entries may refer to A(n_1, n_2, ..., n_m) .
I don't know if there is a good way to describe this with technical terms, so let me just use an example: if A is a 4-dimensional array, then
A(:,:,1,:) is the section 1 st A at the coordinate 3 rd . Similarly
A(:,2,1,:) would be the section (2,1) th A at the coordinates 2 nd and 3 rd .
So, my general question is: given A , whose dimensions are determined only at runtime, how can I refer to the section (k_1,...,k_j) th A in the coordinates (c_1,...,c_j) , where k and c are also variables?
source share