How to name the sheet in excel using MATLAB

53 ビュー (過去 30 日間)
MakM
MakM 2022 年 3 月 31 日
編集済み: Arif Hoq 2022 年 3 月 31 日
I am writing table to excel sheet, is there any way I can name the excel sheet no. Like instead of sheet 1 or sheet 2 I want to name it a and b.
writetable([Table{1,j}], 'test.xlsx','Sheet', j, 'Range', 'A1')

採用された回答

Arif Hoq
Arif Hoq 2022 年 3 月 31 日
編集済み: Arif Hoq 2022 年 3 月 31 日
try this:
writetable(T,'test.xlsx','FileType','spreadsheet','Sheet','a')
% T is your output variable

その他の回答 (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