Cell Array to table
이전 댓글 표시
I have a cell array that contains elements of different sizes:
Values =
1×8 cell array
{[1]} {[0.35]} {1×3 double} {[0]} {1×2 double} {[0]} {1×2 double} {[1]}
I want to save Values, into an existing table. The table has VariableTypes set to cell.
obj.Table{i}(indx,:) = Values
Conversion to cell from double is not possible.
Table should look something like this:

채택된 답변
추가 답변 (1개)
madhan ravi
2019년 2월 22일
doc cell2table
댓글 수: 1
madhan ravi
2019년 2월 22일
T=cell2table(Values);
T.Properties.VariableNames={'id','factor','position','pts','Pt_Location','Turn_Rate','ST_Location','speed'}
카테고리
도움말 센터 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!