I am using writetable for exporting the workspace variables into excel sheet
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
dpb
2023-4-13
Read the rest of the doc, specifically the <named parameters for spreadsheets only> section, you'll be particularly interested in AutoFitWidth — Automatically adjust column width
true (default) | false
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!