I have a 2-by-3 matrix, and I want to sort it according to the first column. Here\'s an example:
data will change to --> new data 11 33
The SORTROWS function can handle that for you:
B = sortrows(A);