A = ipermute(B,order)
A = ipermute(B,order) is the inverse of permute. ipermute rearranges the dimensions of the categorical array B so that permute(A,order) will produce B. The array produced has the same values of A but the order of the subscripts needed to access any particular element are rearranged as specified by order. The elements of order must be a rearrangement of the numbers from 1 to n.