title: Finding minimum array of matrix with condition
body: <p>I want to find the minimum of a matrix say <code>A</code>. I could do it in this way:</p>
  
  <pre><code>NM = find(A==min(A));
  </code></pre>
  
  <p>but I need the minimum array of <code>A</code> which for it, <code>c(NM)</code> is not zero. How can I put this condition on finding minimum value?</p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>c=[0,18,9,0,100,0]; 
  A=[1,189,125,25,7,1];
  </code></pre>
  
  <p>I expext it returns 5.</p>