Cell2mat input cell array error
이전 댓글 표시
I have this error:
Error using cell2mat (line 46) All contents of the input cell array must be of the same data type.
When I check input cell array, it is all numbers or empty cells. I replaced it for only one column with only numbers and still same problem. Does anyone have any idea of what it could be?
Thanks
댓글 수: 4
David Sanchez
2013년 8월 12일
Are you saying that the following code yields an error?
X = rand(10,1);
my_cell = mat2cell(X)
If Yes, you have a problem with your machine.
If No, could you paste the code you are using, please?
David Sanchez
2013년 8월 12일
Code to test ( I forgot last line ):
X = rand(10,1);
my_cell = mat2cell(X)
XX = cell2mat(my_cell);
Iman Ansari
2013년 8월 12일
A={[1 2],uint8([3 4])};
cell2mat(A)
Error using cell2mat (line 46)
All contents of the input cell array must be of the same data type.
Diana
2013년 8월 13일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!