title: Return variable name associated with maximum value Matlab
body: <p>I would like to return the maximum value between two, but return the variable that is assigned to that number...not the number itself. </p>
  
  <pre><code>A = 3
  
  B = 7
  
  max(A,B)
  
      7
  </code></pre>
  
  <p>Instead, I would like to return</p>
  
  <pre><code>'B'
  </code></pre>
  
  <p>I am sorry if this is an obvious question. I just have not found an answer online. </p>