How do I write excel sheetnames in 2019a?

4 次查看(过去 30 天)
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 个评论
Tommy
Tommy 2020-5-2
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 2020-5-2
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.)

请先登录,再进行评论。

回答(0 个)

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by