xlswrite to import data from cell array
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello,
I have a matrix 'm' with 373 cell. each containting 2-d matrix of different size. I want to use 'xlswrite' to write the contents of each table on different sheets of the same file. Can someone please help me in this regard?
댓글 수: 2
Walter Roberson
2018년 5월 25일
Is there a particular reason you are not using writetable() to write those tables? You can pass 'Sheetname' to writetable()
채택된 답변
Walter Roberson
2018년 5월 25일
filename = 'MySpreadsheet.xls';
for sheet = 1 : length(m)
writetable(m{sheet}, filename, 'sheet', sheet)'
end
댓글 수: 3
Walter Roberson
2018년 5월 26일
The first thing I would try would be to add a pause(5) after the writetable() to give the previous action time to finish.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!