Convert cell of matrix into one matrix
2 次查看(过去 30 天)
显示 更早的评论
Hi, does someone know how can I convert cell A into matrix B as the exameple bellow?
% Where A is:
A{1} = [1 2 3;4 5 6];
A{2} = [7 8 9;10 11 12;13 14 15];
% And B should be:
B = [1 2 3
4 5 6
7 8 9
10 11 12
13 14 15];
Thank you so much for all your help.
0 个评论
采纳的回答
更多回答(1 个)
Fangjun Jiang
2021-1-28
cell2mat()
2 个评论
Fangjun Jiang
2021-1-28
It's a matter of cell2mat(A) or cell2mat(A'). It's better to follow a tip to learn something on your own than getting a direct answer.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!