First you need to set the index to min:
[minVal, minInd] = min( MATRIX(:,2) );
And then access the first row in this index:
MATRIX(minInd,1);
A slightly less elegant syntax would look like this:
MATRIX(find(MATRIX(:,2)==min(MATRIX(:,2)),1));
source
share