sorting a matrix column with the corresponding row
Mostra commenti meno recenti
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

Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Shifting and Sorting Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!