title: How to get the largest element index in matlab array
body: <p>Here is a simple double array:</p>
  
  <pre><code>array=[3 1 1]
  </code></pre>
  
  <p>Largest element index is 1</p>
  
  <p>or:</p>
  
  <pre><code>array=[3 9 1]
  </code></pre>
  
  <p>Largest element index is 2</p>
  
  <p>How can I get the largest element index?</p>