title: multimensional array find values
body: <p>I have the following:</p>
  
  <pre><code>A=[2,3,4]
  
  A(:,:,1) =
      0.9572    0    1 
      0    0.1419    0.9157
  A(:,:,2) =
      0     0.9575    0
      0.5469    1    0.9706
  ...
  </code></pre>
  
  <p>I want to find B with the values between 0 and 1, for each column of the matrix A, and for each 5 slices.</p>
  
  <p>From <code>A(:,:,1)</code> I would get:</p>
  
  <pre><code>0.9572 0.1419 0.9157 
  </code></pre>
  
  <p>from <code>A(:,:,2)</code> I would get:</p>
  
  <pre><code>0.5469 0.9575 0.9706
  </code></pre>
  
  <p>At the end matrix B would be B(1,3,4).</p>
  
  <p>Any suggestions to do this?</p>
  
  <p>thanks</p>