How can I use xlswrite in a nested forloop without overwriting?

조회 수: 4 (최근 30일)
HOw is i possible? I am using an algorithmn that is supposed to plot 713 bits of data into an excel data shee. Each time it overwrites. How can I do it so it doesn't overwrite? I am also using a nested for loop

채택된 답변

Image Analyst
Image Analyst 2016년 2월 3일
Keep track of what row you want and set it in the arg list
for k = 1 : 3
cellReference = sprintf('A%d', k); % or whatever...
xlswrite(xlFileName, data, cellReference);
end
  댓글 수: 2
Daniel Allkenmach
Daniel Allkenmach 2016년 2월 3일
This is the best possible answer. Thank you
Daniel Allkenmach
Daniel Allkenmach 2016년 2월 3일
Actually, no data seems to be showing up. Why could this be?

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

추가 답변 (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