How can I use XLSWRITE command to name a worksheet in a workbook in MATLAB?

21 views (last 30 days)
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
Shivam Pande
Shivam Pande on 31 Oct 2018
No, I did not find it during the period when the question was asked. However, the answer below seem to work.

Sign in to comment.

Accepted Answer

Walter Roberson
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
Walter Roberson
Walter Roberson on 30 Oct 2018
If you use xlswrite and the sheet does not already exist then xlswrite will create it.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by