I am using writetable for exporting the workspace variables into excel sheet

1 回表示 (過去 30 日間)
Saravanakumar
Saravanakumar 2023 年 4 月 13 日
コメント済み: Saravanakumar 2024 年 6 月 1 日
I have a excel template in which I export the matlab workspace variables
I am using this code --> writematrix(variables_1,'result.xlsx','Sheet',1,'Range','B2');
After extraction the file changes its column width which I fixed earlier as a template

回答 (1 件)

dpb
dpb 2023 年 4 月 13 日
Read the rest of the doc, specifically the <named parameters for spreadsheets only> section, you'll be particularly interested in AutoFitWidthAutomatically adjust column width
true (default) | false

カテゴリ

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