How can I call all element from cell class ?

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by