title: maximums of vector
body: <p>If I have <code>a=[2 5 7 1 7]</code> then is there a way that MATLAB returns the indices of both 7s in the vector? I mean I am looking for a command that returns <code>max=7</code> and <code>idx=[3 5]</code>.</p>