フィルターのクリア

How can I call all element from cell class ?

1 回表示 (過去 30 日間)
ha ha
ha ha 2018 年 3 月 5 日
編集済み: Stephen23 2018 年 3 月 5 日
Let's say:
A : 3x1 cell class
A : 3x1 cell class
A={cell_1 ; cell_2 ; cell_3 }
A={[1x2 double];[1x4 double];[1x3 double]}
cell_1 [999,222]
cell_2 [444,222,2000,1000]
cell_3 [999,9000,1000]
Question: How can I call all element from cell A?
result=[999;222;444;2000;1000;9000]

採用された回答

Stephen23
Stephen23 2018 年 3 月 5 日
編集済み: Stephen23 2018 年 3 月 5 日
unique([A{:}].','stable')

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 3 月 5 日
cell2mat(cellfun(@transpose, A, 'uniform', 0))

カテゴリ

Help Center および File ExchangeSoftware Development Tools についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by