sort elements of cell array

3 ビュー (過去 30 日間)
Tha saliem
Tha saliem 2017 年 4 月 11 日
コメント済み: Tha saliem 2017 年 4 月 11 日
hey i have a question that how to sort elements of cell array at once Like:
x{1,1}={2;1;3}
x{2,1}={4,2;1;3}
and result should be like this:
x{1,1}={1;2;3}; x{2,1}={1,2;3;4}

採用された回答

KSSV
KSSV 2017 年 4 月 11 日
x{1,1}=[2;1;3] ;
x{2,1}=[4;2;1;3] ;
iwant = cellfun(@sort,x,'un',0)
  1 件のコメント
Tha saliem
Tha saliem 2017 年 4 月 11 日
Thank you so much

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

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