title: MATLAB: Finding coordinates of value in multidimensional array
body: <p>I have a three-dimensional array, and I'd like to be able to find a specific value and get the three coordinates. </p>
  
  <p>For example, if I have:</p>
  
  <p><code>A = [2 4 6; 8 10 12]</code></p>
  
  <p><code>A(:,:,2) = [5 7 9; 11 13 15]</code></p>
  
  <p>and I want to find where <code>7</code> is, I'd like to get the coordinates <code>i = 1</code> <code>j = 2</code> <code>k = 2</code></p>
  
  <p>I've tried variations of <code>find(A == 7)</code>, but I haven't got anywhere yet.</p>
  
  <p>Thanks!</p>