title: Index slicing of multidimensional arrays with a list of slices
body: <p>I have a four-dimensional array of image volumes, data, with size <code>[94, 64, 64, 64]</code>. The ordering of these images is not in a specific order, so I want to split this array into four different arrays each with pre-selected indexes.</p>
  <p>So for example, I know that the &quot;MCI&quot; data takes up volumes (1st dimension) <code>(17,18,19,38,39)</code> so I'd like to be able to take all five of these parts out at once into a new array like this:</p>
  <pre><code>dataMCI = data[(17,18,19,38,39),:,:,:]
  </code></pre>
  <p>as I would if say I wanted the third image out:</p>
  <pre><code>data3 = data[2, :, :, :]
  </code></pre>
  <p>But this method doesn't seem to work. It seems like a really easy question but I cannot find a really easy answer without loops. Obviously I cannot do <code>dataMCI = data[17:39, :, :, :]</code> as they are not in sequence.</p>