title: How to find all minimum elements in a vector
body: <p>In Matlab, by the function min（）， I can only get one single minimum element of a vector, even if there can be several equal minimum elements. I was wondering how to get the indices of all minimum elements in a vector?</p>
  
  <p>For example, </p>
  
  <pre><code>v=[1,1];
  </code></pre>
  
  <p>I would like to get the indices 1 and 2, both of which index the smallest elements 1.</p>
  
  <p>Thanks and regards!</p>