How to concatenate all these cells vertically?

조회 수: 1 (최근 30일)
CalebJones
CalebJones 2019년 11월 12일
편집: CalebJones 2019년 11월 12일
I have attached the file below. I'm unable to concatenate these cells verically.
  댓글 수: 2
Bhaskar R
Bhaskar R 2019년 11월 12일
Your data is table data stored as structure->cell->table.
Cell data arranged in horizantally(row matrix) if you want that data to vertical(column maxtrix) apply transpose
cell_data = S.result;
vertical_data = cell_data';
CalebJones
CalebJones 2019년 11월 12일
편집: CalebJones 2019년 11월 12일
Bhaskar R, doesn't do what i want it to do. What I mean by that is, I want all the values from the structure->cell->table to be in one table.

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

채택된 답변

Stephen23
Stephen23 2019년 11월 12일
편집: Stephen23 2019년 11월 12일
>> load('matlab.mat')
>> R = S.result;
>> T = vertcat(R{:});
>> whos T
Name Size Bytes Class Attributes
T 41392x2 374716 table
To know how it works:
  댓글 수: 2
Rik
Rik 2019년 11월 12일
I was just about to write an answer with cat(1,R{:}), forgetting that it would call vertcat internally.
CalebJones
CalebJones 2019년 11월 12일
편집: CalebJones 2019년 11월 12일
does this mess up the order by any chance?Stephen Cobeldick

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by