How to concatenate all these cells vertically?
2 ビュー (過去 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!