LIN2NDI Useful for generating indices of N-D arrays. LIN2NDI(N,BASE) returns the representation of N as a vector in the bases given by the elements of BASE. (Reverse operation to NDI2LIN.) Example: A = zeros(2,2,3,4); A(1,2,3,4) = 1; ndi = lin2ndi(find(A),size(A)) See also NDI2LIN.