MATLAB: How to sort one column of a matrix

sort

I have a matrix that has 500 rows and 5 columns. I want to sort the matrix based on the 3 rd column. I mean rearrange the matrix based on the 3rd column descending.

Best Answer

B = sortrows(A,-3)
Related Question