How to concatenate all these cells vertically?

1 Ansicht (letzte 30 Tage)
CalebJones
CalebJones am 12 Nov. 2019
Bearbeitet: CalebJones am 12 Nov. 2019
I have attached the file below. I'm unable to concatenate these cells verically.
  2 Kommentare
Bhaskar R
Bhaskar R am 12 Nov. 2019
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 am 12 Nov. 2019
Bearbeitet: CalebJones am 12 Nov. 2019
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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Stephen23
Stephen23 am 12 Nov. 2019
Bearbeitet: Stephen23 am 12 Nov. 2019
>> 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 Kommentare
Rik
Rik am 12 Nov. 2019
I was just about to write an answer with cat(1,R{:}), forgetting that it would call vertcat internally.
CalebJones
CalebJones am 12 Nov. 2019
Bearbeitet: CalebJones am 12 Nov. 2019
does this mess up the order by any chance?Stephen Cobeldick

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by