Problem regarding to change conversion of cell2mat.
Mostra commenti meno recenti
Need help to conversion from cell to matrix.
my_cell={[1,10],[1,2,10],[1,6,10]}
my_cell =
[1x2 double] [1x3 double] [1x3 double]
>> my_mat=cell2mat(my_cell)
my_mat =
1 10 1 2 10 1 6 10
i need output in form of matrix like my_mat=[1 10 0;1 2 10;1 6 10];
some one tell me method to conversion like this.
Risposta accettata
Più risposte (2)
Azzi Abdelmalek
il 10 Mag 2014
my_cell={[1,10],[1,2,10],[1,6,10]}
my_mat=cell2mat(my_cell')
1 Commento
Arjun
il 10 Mag 2014
Jos (10584)
il 10 Mag 2014
This is a case for PADCAT:
my_cell={[1,10],[1,2,10],[1,6,10]}
result = padcat(my_cell{:})
PADCAT can be downloaded from the Matlab File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/22909-padcat
Categorie
Scopri di più su Mathematics in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!