Having 2-dimensional array,A, I want to find minimum number in the array. However I can have more than one of that number. How can I find the [row col] of all m
A
find will do the trick:
[I,J] = find(A == min(A(:)) ); disp([I J]) 2 1 2 4 3 4