Convert a table of tables in a single table

조회 수: 2 (최근 30일)
Mario Diaco
Mario Diaco 2020년 5월 14일
댓글: Mario Diaco 2020년 5월 14일
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
Fangjun Jiang
Fangjun Jiang 2020년 5월 14일
what is class(T)?

댓글을 달려면 로그인하십시오.

채택된 답변

Fangjun Jiang
Fangjun Jiang 2020년 5월 14일
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)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by