How to keep Excel template format when using writetable
Afficher commentaires plus anciens
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?
2 commentaires
madhan ravi
le 28 Oct 2018
upload your code and datas to export
Morteza
le 28 Oct 2018
Réponses (1)
madhan ravi
le 28 Oct 2018
Modifié(e) : madhan ravi
le 28 Oct 2018
t = readtable ('testFile.xlsx')
t.Var2(1,:) = 4
writetable(t,'testFile.xlsx');
2 commentaires
Morteza
le 29 Oct 2018
madhan ravi
le 29 Oct 2018
Modifié(e) : madhan ravi
le 29 Oct 2018
I use 2018b matlab and excel 2016 , it works in mine but no idea what’s the mystery behind yours
Catégories
En savoir plus sur Data Import from MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!