i need to convert a cell with different datatype to a matrix please any one help me to do this
Show older comments
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 Comment
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 ..
Accepted Answer
More Answers (0)
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!