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

3 ビュー (過去 30 日間)
Shivam Pande
Shivam Pande 2018 年 2 月 17 日
コメント済み: Shivam Pande 2018 年 10 月 31 日
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 件のコメント
Yasmin Samy
Yasmin Samy 2018 年 10 月 30 日
Hello Shivam, did you find a solution to your problem ??
Shivam Pande
Shivam Pande 2018 年 10 月 31 日
No, I did not find it during the period when the question was asked. However, the answer below seem to work.

サインインしてコメントする。

採用された回答

Walter Roberson
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
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
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 ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by