How to concatenate all these cells vertically?
1 次查看(过去 30 天)
显示 更早的评论
I have attached the file below. I'm unable to concatenate these cells verically.
2 个评论
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';
采纳的回答
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
2019-11-12
I was just about to write an answer with cat(1,R{:}), forgetting that it would call vertcat internally.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!