How can I use XLSWRITE command to name a worksheet in a workbook in MATLAB?
조회 수: 3 (최근 30일)
이전 댓글 표시
I am using XLSWRITE command to write multiple matrices to the same excel file in different worksheets. But, I also want to rename the worksheets for better understanding. How can this be done?
댓글 수: 2
채택된 답변
Walter Roberson
2018년 10월 30일
You can pass a sheet name as the third parameter to xlswrite.
xlswrite does not offer any method to rename sheets.
댓글 수: 2
Yasmin Samy
2018년 10월 30일
Yes that`s what I`m currently doing. Saving the workbook with the sheet names i want. Then using xlswrite to fill it up! I think to set it within the code, we would need to use writetable, correct?
Walter Roberson
2018년 10월 30일
If you use xlswrite and the sheet does not already exist then xlswrite will create it.
추가 답변 (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!