필터 지우기
필터 지우기

Add new data into existing excel file

조회 수: 35 (최근 30일)
Hazel Sialongo
Hazel Sialongo 2016년 10월 4일
댓글: Cádmo Dias 2019년 3월 25일
I have an existing excel file and I want to add new data in a new column. How will I do that?

채택된 답변

Gareth Thomas
Gareth Thomas 2016년 10월 4일
If you use xlswrite with this code it should work:
filename = 'testdata.xlsx';
A = {'Time','Temperature'; 12,98; 13,99; 14,97};
sheet = 2;
xlRange = 'E1';
xlswrite(filename,A,sheet,xlRange)
Notice how the xlRange shows the columns.
  댓글 수: 2
Hazel Sialongo
Hazel Sialongo 2016년 10월 4일
I want to happen is every time I click the save button it will automatically save the data in another column.
Cádmo Dias
Cádmo Dias 2019년 3월 25일
First of all, thanks for your help,Gareth!
Hazel, I suggest to you increase the range, in "xlRange" variable, to change the column.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by