Effacer les filtres
Effacer les filtres

Save variable data without overwrite in excel

1 vue (au cours des 30 derniers jours)
muhamad idris
muhamad idris le 8 Juil 2015
Commenté : muhamad idris le 18 Juil 2015
Hi there,i'm newbie here.I have problem to save my variables data in excel where the new data overwrite the existing data.The new data should be added to existing data and not overwrite.Here is my code:
T = table(k,l,m,n,o);%k,l,m,n,n,o is the variables
filename = 'filename.xlsx';
writetable(T,filename,'Sheet',1,'Range','A1');
Thanks guys.

Réponses (1)

Abhishek Pandey
Abhishek Pandey le 17 Juil 2015
Hello Muhamad,
You can check out this link. I believe a similar question has been answered here.
Thanks,
Abhishek
  1 commentaire
muhamad idris
muhamad idris le 18 Juil 2015
Hi Abhishek, thanks for your help.I have tried the code but it still replaced the existing data.The program should keep record all variables value without overwrite it.Someone told me to use append function but I'm not sure how to use that.Thanks

Connectez-vous pour commenter.

Catégories

En savoir plus sur Data Import from MATLAB dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by