Convert a table of tables in a single table
조회 수: 2 (최근 30일)
이전 댓글 표시
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
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 Center 및 File Exchange에서 Tables에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!