How to write cell array to excel file
이전 댓글 표시
I have a cell array whose elements have different sizes. How can I write it to an excel file?
For example:
a = rand(10,1);
b = rand(5,1);
c = rand(4,8);
X = {a, b, c};
How can I export X to an excel file?
채택된 답변
추가 답변 (2개)
Try this:
writecell(X, 'X.xlsx')
댓글 수: 2
Walter Roberson
2020년 4월 9일
The result of that would be a single row with numel(a)+numel(b)+numel(c ) columns.
parham kianian
2020년 4월 10일
Qiang Lei
2022년 5월 20일
0 개 추천
writetable(cell2table(X), 'X.xlsx')
카테고리
도움말 센터 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!