I am not really sure what you mean , but it seems very easy.
Do you have a matrix consisting as
matrix = {[1 ,2,3],;[3,3 ,5]; [5,9 ,39]; [39,23,45]}
and you want to compare between the first element of each column ??
if that what you want then it is simple