How can I call all element from cell class ?

1 view (last 30 days)
ha ha
ha ha on 5 Mar 2018
Edited: Stephen23 on 5 Mar 2018
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]

Accepted Answer

Stephen23
Stephen23 on 5 Mar 2018
Edited: Stephen23 on 5 Mar 2018
unique([A{:}].','stable')

More Answers (1)

Walter Roberson
Walter Roberson on 5 Mar 2018
cell2mat(cellfun(@transpose, A, 'uniform', 0))

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by