how to sort an array of elements corresponding to another array in increasing order ?
5 ビュー (過去 30 日間)
古いコメントを表示
talal alqahtani
2019 年 12 月 13 日
回答済み: Turlough Hughes
2019 年 12 月 13 日
if a= -1 0 2 -3 5 -10
and b= 2 -3 5 0 4 1
are two corresponding arrays . how to sort values of (b) in an increasing order with keeping its corresponding values in array (a).
the answer should be like this:
a= 0 -3 -10 -1 5 2
b= -3 0 1 2 4 5
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および 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!