Check out example codes for "find location of max value in array matlab". It will help you in understanding the concepts better.

Code Example 1

maximum = max(max(A));
[x,y]=find(A==maximum)

Learn ReactJs, React Native from akashmittal.com