How can I call all element from cell class ?

1 visualizzazione (ultimi 30 giorni)
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]

Risposta accettata

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

Più risposte (1)

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

Categorie

Scopri di più su Graphics Object Programming in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by