MATLAB: Sort from largest to smallest sort Dear all, I have this matrix: A=[1 33 64 75 86 28 39 6]Could you help me how to arrange the first colum from max to min Best Answer sort(A(:,1),'descend')If you want to sort the matrix A by rows based on the first column, then e.g.flipud(sortrows(A))Or variations of the above based on what you want for output. Related SolutionsMATLAB: Sorting matrix in ascending order based on column 1 (and ascending order also for column 2) Use the sortrows command.B = sortrows(A,1); MATLAB: FETCH LARGEST NUMBERS 1. Take the capslock off.2. Sort your array in descending order. Use the SORT function.3. Take the first 3 numbers in the sorted array. Related QuestionReturn Indices for x Smallest/Largest Values in ArraySort matrix based on unique values in one column
Best Answer