MATLAB: How to assign only first member in matrix

matrix manipulation

I am using q(t) = find(A == max1(t));
But problem here is in max1(4) has value of 134 and in A 134 is repeated two times I want only first location of 134 how to do that ?

Best Answer

q(t) = find(A == max1(t),1,'first')