how to save data into same excel sheet after each iteration

2 次查看(过去 30 天)
HI
i want to store data (matrix form, X_dim = 1200x49 and Y_dim = 1200x49) from my current MATLAB program into an excel sheet.
Then for the next iteration i want to save the data in same sheet from row 1201.
can anyone help please. I saw several answers but i am confused.
  1 个评论
dpb
dpb 2021-2-14
You'll have to keep track of the row number that you need for the 'Range' value each iteration.
compose may be of interest/help in creating that output range string from the current calculated number.

请先登录,再进行评论。

回答(1 个)

Jeremy Hughes
Jeremy Hughes 2021-2-15
You can try writetable/writecell/writematrix with the 'WriteMode','append' parameter.
e.g.
writetable(myTable,'file.xlsx','WriteMode','append')
This is a fairly recent addition though. Not sure which release.

类别

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