how to extract all the data from cell and connect them to one array?
1 次查看(过去 30 天)
显示 更早的评论
I have a mat file includes 100000 cells, I want to extract the data from each cell, and connect them into one array. any help?
0 个评论
采纳的回答
Walter Roberson
2016-2-5
The .mat file contains a variable named Record which is a cell array. Each entry is something-by-3, minimum 3 x 3 and at most 20 x 3. In total there are 1128286 entries. If you are looking for a 1128286 x 3 numeric output then:
result = vertcat(Record{:});
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!