sorting a matrix column with the corresponding row
1 view (last 30 days)
neamah al-naffakh on 22 Jan 2017
I have a matrix that contains ( 6 rows, 2 columns) as shown in the attached image.
I'd like to have a new matrix (in MATLAB) that contains the second columns arranged in ascending order, but would like to keep their corresponding values in the in the row. for example: the output matrix looks like this