sorting a matrix column with the corresponding row
이전 댓글 표시
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

채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!