How to concatenate all these cells vertically?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
CalebJones
el 12 de Nov. de 2019
Editada: CalebJones
el 12 de Nov. de 2019
I have attached the file below. I'm unable to concatenate these cells verically.
2 comentarios
Bhaskar R
el 12 de Nov. de 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';
Respuesta aceptada
Stephen23
el 12 de Nov. de 2019
Editada: Stephen23
el 12 de Nov. de 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 comentarios
Rik
el 12 de Nov. de 2019
I was just about to write an answer with cat(1,R{:}), forgetting that it would call vertcat internally.
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrices and Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!