Is there a way to write data to excel, on different sheets, with each sheet named?

144 ビュー (過去 30 日間)
Teshan Rezel
Teshan Rezel 2021 年 7 月 1 日
回答済み: Vivek 2023 年 8 月 4 日
Hi folks,
I am trying to write data from matlab into excel, onto multiple sheets within the same excel file. However, I would like each new sheet to be renamed to a specific string which I define.
As far as I can tell, this is not an option in an existing matlab function. Is there a way around this please?

採用された回答

Sam
Sam 2021 年 7 月 1 日
編集済み: Sam 2021 年 7 月 1 日
In the writetable/writematrix/writecell method, you can specify the name of the sheet you want to write the data to. If given sheet does not exist, it will be created. Refer to this link for more information.
Note: if a new sheet is added, matlab will throw a warning. The link above also contains information about how to supress such warnings.

その他の回答 (1 件)

Vivek
Vivek 2023 年 8 月 4 日

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by