Clear Filters
Clear Filters

How do I write excel sheetnames in 2019a?

3 views (last 30 days)
The command "sheetnames" was implemented in 2019b. I have 2019a. How do I write the sheetnames of an excel file?
The documentation on the website is great for the most current version of MATLAB. It would be nice if there was a link to the legacy method for those with older versions.
  2 Comments
Tommy
Tommy on 2 May 2020
Apologies, I must have misread the question at first, although as far as I can tell, sheetnames doesn't let you write sheet names...
You can always specify the name of the sheet when writing to Excel with either xlswrite or writetable / writematrix / writecell / etc... For example
xlswrite(filename, data, 'sheet name')
or
writetable(T, filename, 'Sheet', 'sheet name')
If you want to change the names of existing sheets, and you're on Windows, maybe this will help?
Steven Lord
Steven Lord on 2 May 2020
FYI at the top of the right frame on the main documentation page is a link to "Other Releases". That allows you to access documentation from the last several releases (back to release R2013a at this time.)

Sign in to comment.

Answers (0)

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!