The function max alone is sufficient, you don't have to use find for this sort of problem.
[Y,I] = max(A)
The variable I will return the index of the first maximum value.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!