Filter löschen
Filter löschen

Convert a table of tables in a single table

1 Ansicht (letzte 30 Tage)
Mario Diaco
Mario Diaco am 14 Mai 2020
Kommentiert: Mario Diaco am 14 Mai 2020
I have an object with 1x60 cell, where any single cell it's a table. How I can convert this object in a single table, where all columns of the original object are the columns of the new table?
  3 Kommentare
Fangjun Jiang
Fangjun Jiang am 14 Mai 2020
what is class(T)?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 14 Mai 2020
Okay, what you have is new in R2020a. Here is an example:
a{1}=table(rand(9,1));
a{2}=table(rand(9,1));
b=cellfun(@table2array,a,'UniformOutput',false);
c=cell2mat(b);
d=table(c)

Weitere Antworten (0)

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by