How do I export the results of multiple 'runs' of my code to text without overwriting the previous run?

I have been playing around with different parameters in my code and want to collect the results of all of this in one single text file. But each time I print the results of a specific run of my code with specific parameters it overwrites the last one. Is it possible to have one single text file that collects the results of each run of my code so that I can see on one page a list of results with their corresponding parameters?

Answers (1)

What are you using to write the data? If you look at
doc fopen
You can see the 'a' option for append.

This question is closed.

Asked:

on 21 Jul 2011

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!