How can I arrange the y-values in xyz-data in ascending order?

7 ビュー (過去 30 日間)
Harald von der Osten
Harald von der Osten 2019 年 10 月 22 日
コメント済み: Harald von der Osten 2019 年 10 月 22 日
How can i change the values:
23.2 54.23 354.43
12.2 15.43 324.42
54.2 33.43 376.43
43.3 76.34 365.34
...
reorder so that the values in the second column are arranged in ascending order, but the (xyz)-triple still exists:
12.2 15.43 324.42
54.2 33.43 376.43
23.2 54.23 354.43
43.3 76.34 365.34
...
??
Thank you so much!
Harry

採用された回答

ME
ME 2019 年 10 月 22 日
You can use
sortrows(A, column)
where A is your array and column is the column you wish to sort.
  1 件のコメント
Harald von der Osten
Harald von der Osten 2019 年 10 月 22 日
thanks a lot. It's a lot easier than I thought ...

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by