powered by
Emulates the behavior of the sortrows function on Matlab
sortrows
sortrows(A, column = 1)
The A matrix sorted by the first row, then the second
matrix
ordering column
mx <- matrix(c(3, 2, 2, 1, 1, 10, 0, pi), 4) mx sortrows(mx)
Run the code above in your browser using DataLab