title: Compact MATLAB matrix indexing notation
body: <p>I've got an n-by-k sized matrix, containing k numbers per row. I want to use these k numbers as indexes into a k-dimensional matrix. Is there any compact way of doing so in MATLAB or must I use a for loop?</p>
  
  <p>This is what I want to do (in MATLAB pseudo code), but in a more MATLAB-ish way:</p>
  
  <pre><code>for row=1:1:n
      finalTable(row) = kDimensionalMatrix(indexmatrix(row, 1),...
            indexmatrix(row, 2),...,indexmatrix(row, k))
  end
  </code></pre>