title: get second max element in matlab
body: <p>I have an array,  say <code>A = [ 3 5 6 7 ]</code>. I know I can get the maximum value of this array with <code>max(A)</code> and it returns <code>7</code>, but how can I get the second max (<code>6</code>)  from this array without sorting or removing the first maximum value?</p>