MATLAB: Minimum of a 3X3 matrix

minimum

I am trying to find the min and the indices of the min in a 3X3 matrix. want to use a variation of "find(arr == max(arr));"
Kindly help

Best Answer

Two possible approaches:
A = rand(3); % Create Data
[Amin,idx] = min(A(:)); % One Option
[r,c] = ind2sub(size(A), idx)
[r,c] = find(A == min(A(:))) % Another Option
Amin = A(r,c)