Sorting cell array containing alphanumeric text

7 ビュー (過去 30 日間)
Sam Smith
Sam Smith 2018 年 11 月 30 日
コメント済み: Sam Smith 2018 年 11 月 30 日
I have a cell array, a column of which consists of alphanumeric text such as
3. Item 3
2. Item 4
5. Item 5
I want to sort the cell array so that that column is in ascending order according to the number: 1. Item 2; 2. Item 2; etc, and have the other columns sorted along with this.
  1 件のコメント
Sam Smith
Sam Smith 2018 年 11 月 30 日
I figured it out. It's just sortrows(A,columnnumber).

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

採用された回答

madhan ravi
madhan ravi 2018 年 11 月 30 日
sort(a) where a is your cell array

その他の回答 (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