how can find minimun element in 2D array
No products are associated with this question.
[minval, minpos] = min(YourArray(:)); [minrow, mincol] = ind2sub(size(YourArray), minpos);
The above if you want to know the row and column as well as the value. If you just want the value then
minval = min(YourArray(:));