title: Find the location and determine the corresponding value of another array having the same location of one array
body: <p>If   </p>
  
  <pre><code>a=[5 8 1 2 6 7 1 4 2 3 7 8];
  b=[7 6 3 1 5 4 2 0 1 8 9 4];
  </code></pre>
  
  <p>then </p>
  
  <pre><code>a1=[1 7 3] 
  </code></pre>
  
  <p>corresponds to a matrix and d should be <code>[3 4 8]</code></p>
  
  <p><code>d</code> is the exact location of the corresponding <code>a</code> value. How do I find this value?</p>