title: How to find subscripts of matching element(s) in matlab/octave
body: <p>Given a value in a matrix how can you get the subscript(s) at which the value occurs in the matrix?</p>
  
  <p>So in this example</p>
  
  <pre><code>octave:27&gt; X=rand(3)
  X =
  
     0.46749   0.41187   0.26832
     0.91106   0.63567   0.97302
     0.71809   0.55269   0.84742
  </code></pre>
  
  <p>Given the value 0.26832  I would like to extract the subscript (1,3)</p>