MATLAB: How to sort the data with respect to a column in matlab

datadatasortingexcelmatrixsortsorting

Lets say….A matrix PhysicalData is a 18X12 matrix. And i want to sort all the rows, in the ascending order of value in any column (Lets say 15th column). So the Row corresponding to the lowest value in 15th column should come first and so on. Please help me out. Thanks

Best Answer

doc sortrows
Suppose you want to sort matrix A according to the 15th column you would use
out=sortrows(A,15)
Related Question