How can I use XLSWRITE command to name a worksheet in a workbook in MATLAB?
3 views (last 30 days)
Show older comments
Shivam Pande
on 17 Feb 2018
Commented: Shivam Pande
on 31 Oct 2018
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 Comments
Accepted Answer
Walter Roberson
on 30 Oct 2018
You can pass a sheet name as the third parameter to xlswrite.
xlswrite does not offer any method to rename sheets.
2 Comments
Yasmin Samy
on 30 Oct 2018
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
on 30 Oct 2018
If you use xlswrite and the sheet does not already exist then xlswrite will create it.
More Answers (0)
See Also
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!