title: How to find the minimum index?
body: <p>I have vector <code>a=[7;4;3;2;5;6;2]</code> of length 7 and the element 2 is the minimum element, but there are two locations of where the minimum is.</p>
  
  <p>I need to find the <strong>smallest</strong> position of the minimum element.  How can this be done in MATLAB?</p>