a big cell array
조회 수: 1 (최근 30일)
이전 댓글 표시
if i have a cell array 11*1000 elements,and i want to write every each one column vector from the 1000 columns to an excel sheet or file in one command what do i have to?
댓글 수: 0
답변 (1개)
dpb
2019년 8월 9일
편집: dpb
2019년 8월 10일
Follow the documentation--for xlswrite, every cell element has to be a single value. So, if your array has cells (or any single cell) containing more than one element per each, you've got to expand it first.
W/ R2019a, TMW has introduced writecell and deprecated xlswrite I don't have the release so can't test but same caveat on cell array content is implied albeit not explicitly stated and it says uses '%g' as a format so may not reproduce data as does xlswrite.
댓글 수: 2
dpb
2019년 8월 10일
Just write the array...RunActivityData_mat is an array, just write it instead making up eleven files.
xlswrite(myfilename, cell2mat(RunActivityData),'TASK','B1');
is all you need other than to create a meaningful filename.
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!