How to keep Excel template format when using writetable
2 次查看(过去 30 天)
显示 更早的评论
Hi. I,m trying to export my data to Excel file by using writetable function, but when I use this function, the destination file format will be reset. How should I do to keep the template format unchanged?
回答(1 个)
madhan ravi
2018-10-28
编辑:madhan ravi
2018-10-28
t = readtable ('testFile.xlsx')
t.Var2(1,:) = 4
writetable(t,'testFile.xlsx');
2 个评论
madhan ravi
2018-10-29
编辑:madhan ravi
2018-10-29
I use 2018b matlab and excel 2016 , it works in mine but no idea what’s the mystery behind yours
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!