MATLAB: The dimension of matrix minimum

the dimension of matrix minimum

Hi, I know that if we have a matrix "A" we can get the minimum value of this matrix by min(A), but is it possible to get the dimension of this minimum value? for example if we have a 30*90 matrix "A" and assume that the minimum value is A(25,81), how can we get these numbers ==>(25,81)?
thanks,

Best Answer

[ii,ii] = min(A(:));
[i1,j1] = ind2sub(size(A),ii);