Convert cell of matrix into one matrix
조회 수: 1 (최근 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!