There is probably no optimal N-D put for all situations, but as a reference you might be interested to note that MATLAB would assign 16 positions for the case ix = [3,4,5,6] d[ix,[1,2,5,7]] = 1 One possibility is to use 1-D indexing to put into N-D arrays. -Travis