i need to convert a cell with different datatype to a matrix please any one help me to do this
Ältere Kommentare anzeigen
i am having a cell vector y= [16x16 double] {1x3 cell} {1x3 cell} {1x16 cell} {1x32 cell} {1x32 cell} i need to convert this to matrix i have used the cell2mat command but it shows the error that "All contents of the input cell array must be of the same data type". please any one help me to do this.
1 Kommentar
Well, you seem to have an issue with the dimension of the objects that are stored in your cells, that will prevent any vertcat/horzcat anyway. Assuming that you could perform cell2mat the way you tried, how should these objects concatenate?
It seems that the only way for it to make sense dimension-wise, is if each cell of internal cell arrays is a 16xn numeric array in itself, with arbitrary n, and that you want to concatenate them horizontally ..
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Data Type Conversion finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!