how to convert cell to matrix
22 次查看(过去 30 天)
显示 更早的评论
i have 70103x1 cell array but i want to convert this to matrix i want every array open one row. briefly i want to convert this for example 70103x90 how can i do that?
1 个评论
Akira Agata
2018-12-28
Does each cell contain 1x90 array? If so, cell2mat function works, as:
% 2x1 Sample cell array
C = {rand(1,90),rand(1,90)};
% cell2mat will convert it into 2x90 array
X = cell2mat(C);
采纳的回答
madhan ravi
2018-12-29
[yourcellarray{:}]
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!