필터 지우기
필터 지우기

xlswrite is not recommended, what should I use instead?

조회 수: 6 (최근 30일)
Gabriela Garcia
Gabriela Garcia 2021년 1월 19일
댓글: Gabriela Garcia 2021년 1월 19일
I have eleven 12x8 matrices composed of 1s and 0s. I want to export each matrix into its own excel file as a table with the rows labeled with times and the columns labeled with weekdays. I want to use an efficient code and possibly a loop to prevent typing over and over again. Each Matrix is saved as as a variable, like 'A53'. Of the eleven matrices, ten are have consecutive counting titles, like 'A51', 'A52', 'A53'...'A60'. Is it possible to use a loop to load these into separate excel sheets, as described above?

답변 (1개)

Star Strider
Star Strider 2021년 1월 19일
Since you have R2020a, first, create a table using your data, then use writetable to write it to an Excel file (or other options).
  댓글 수: 8
Walter Roberson
Walter Roberson 2021년 1월 19일
Open in which program?
Gabriela Garcia
Gabriela Garcia 2021년 1월 19일
While I run the script that is supposed to write the matrices into their own excel sheets, is there another function to add that will have the new excel documents open?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by