Concatenate together two cell arrays

1 Ansicht (letzte 30 Tage)
Fabio Taccaliti
Fabio Taccaliti am 2 Jul. 2022
Kommentiert: Fabio Taccaliti am 3 Jul. 2022
Hello,
I have two 102 x 1 cell (respectively CC and DD), each of them with all 32 x 4 doubles.
I would like to create another cell BB (102 x 1) that includes all the elements of the cell CC and DD, I mean it should contain 64 x 4 doubles (the first part 32 x 2 from CC and the second part 32 x 2 from DD).
How can I do it?
Thanks

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 2 Jul. 2022
BB = cellfun(@(c,d) [c;d], CC, DD, 'uniform', 0);
  3 Kommentare
Walter Roberson
Walter Roberson am 2 Jul. 2022
cell2mat(BB)
Fabio Taccaliti
Fabio Taccaliti am 3 Jul. 2022
thankss

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by