i need to convert a cell with different datatype to a matrix please any one help me to do this
이전 댓글 표시
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
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 ..
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!