convert cell array to 3d array
Mostra commenti meno recenti
i have cell array which contains multiple elements like this: a={2x1 cell,2x1 cell,2x1 cell;3x1 cell,3x1 cell,3x1 cell}
and every cell contains elements like for example for first row elements are like this:
a{1,1}{1,1}=2
a{1,1}{2,1}=2
a{1,2}{1,1}=1
a{1,2}{2,1}=1
a{1,3}{1,1}=1
a{1,3}{2,1}=-1
i want to convert this cell array into a 3D array. i have tried cell2mat but it gives following error:
"CELL2MAT does not support cell arrays containing cell arrays or objects"
please help.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Characters and Strings 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!