Saving output in different rows with subsequent runs of my program.
5 views (last 30 days)
Show older comments
I want to run my program multiple times, and during each run, I want to save data in a same Excel sheet but in the different new row such as
Run 1 output data in A1,
Run 2 output data in A2, and so on and so on.....
Currently my output data keep saving in same row (A1) and overwrites it after the next run. I hope someone can help to answer my problem. Thanks In advance.
0 Comments
Answers (1)
dpb
on 29 Apr 2023
Far more efficient would be to wrap your code as a function, then call it in a loop saving the output in an array locally, THEN write the output in "one swell foop" instead of opening/closing the file for every row.
2 Comments
See Also
Categories
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!