필터 지우기
필터 지우기

Save variable data without overwrite in excel

조회 수: 1 (최근 30일)
muhamad idris
muhamad idris 2015년 7월 8일
댓글: muhamad idris 2015년 7월 18일
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.

답변 (1개)

Abhishek Pandey
Abhishek Pandey 2015년 7월 17일
Hello Muhamad,
You can check out this link. I believe a similar question has been answered here.
Thanks,
Abhishek
  댓글 수: 1
muhamad idris
muhamad idris 2015년 7월 18일
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by