Convert cell of matrix into one matrix
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Alejandro Fernández
il 28 Gen 2021
Commentato: Fangjun Jiang
il 28 Gen 2021
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 Commenti
Risposta accettata
Più risposte (1)
Fangjun Jiang
il 28 Gen 2021
cell2mat()
2 Commenti
Fangjun Jiang
il 28 Gen 2021
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.
Vedere anche
Categorie
Scopri di più su Structures in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!