Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Converting a variable sized cell array to a matrix
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a cell as below:
5 -3 11
2 3 7
-9 7
-1 3 2 4
-4
I want to convert this to a matrix. I don't know the maximum columns of the data. That means, given a cell, first I need to split the data and see what is the maximum number of columns and then generate the matrix accordingly.
댓글 수: 1
the cyclist
2020년 11월 16일
편집: the cyclist
2020년 11월 16일
The way you have written this, it leaves a lot of ambiguity. Is this an accurate definiion for your cell array?
C = {5, -3, 11, [];
2, 3, 7, [];
-9, 7, [], [];
-1, 3, 2, 4;
-4, [], [], []};
If not, can you define it in MATLAB notation, or upload it here in a MAT file?
채택된 답변
Sourabh Kondapaka
2020년 11월 18일
If this is still not clear. Please upload a .mat file of the variable using save() method in matlab.
댓글 수: 0
추가 답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!