MATLAB: Sortrows sort Hi,I have a matrix. I= 1 4 5 6 2 3 I want the output sorting in the following 5 6 2 3 1 4 Thanks. Best Answer sortrows(I,-1) Related SolutionsMATLAB: Sorting matrix sortrows(a) MATLAB: How to sort a matrix by a predefined order A=[1 2; 7 8; 5 6; 3 4];B=[1; 4; 3; 2];A = A(B,:); Related QuestionBug in sortrowsUnion of cell matrixSortrows descend not workingSort without duplicateHow to sort a set of data according to the ascending order with timeSortrows with cell array
Best Answer