matlab - Max along a row when there are more than one max -


how find indices maximum along given row of matrix. max(a(1,:)) returns first maximum!

i want indices of elements maximum (multiple)

max returns value of maximum element, can find in array:

ind = find(a(1, :) == max(a(1, :))) 

Comments