필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

i want to store 3 attributes in 3 columns of excel sheet and 10 times

조회 수: 1 (최근 30일)
amrin shaikh
amrin shaikh 2018년 9월 28일
마감: MATLAB Answer Bot 2021년 8월 20일
code is>>>> f1='13_1_1'; f2='13_1_2'; a=0;
i want to create excel sheet named sheet1 having 3 columns where in firts attribute value of f1, second attribute value of f2 and in 3rd attribute value of a should get stored and i want to repeat the writing process.

답변 (1개)

ANKUR KUMAR
ANKUR KUMAR 2018년 9월 28일
f1='13_1_1';
f2='13_1_2';
a=0;
A={f1,f2,a}
xlswrite('sample.xlsx',A,'sheet1 ','A1')
You can easily put this in a loop. If not, let us know.
  댓글 수: 5
ANKUR KUMAR
ANKUR KUMAR 2018년 9월 29일
It will overwrite the data if you re-execute the program with different values, because writing process in excel always starts with cell A1. You have to give cell number as input, then pass the cell number argument at the time of writing in excel.
TIP: Don't write multiple times in excel, as it complicated because everytime you have to provide cell number. Make a cell matrix,completely, in matlab in the manner you wish to write in excel and then use xlswrite command.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by