Automatic experiment & simulation logging

Automatic logging of simulations' parameters and corresponding results

You are now following this Submission

This code, when called at the end of a simulation or experiment matlab code, does the following:
1.Records all the parameters included in the "parameters" struct, including all data types (inner structs as well).
2.Records the corresponding results contained in the "results" struct.
3.Writes the differences in parameters from previous run into a log file (and optionally to the screen).
4.Records the best (minimal) results achieved so far, along with its specific identifier, enabling reproduction of the results.
5.Writes the differences in parameters from those used when achieving the best results so far (see 4).
6.Saves additional desired variables, along with the parameters and results.

Cite As

Yuval Bahat (2026). Automatic experiment & simulation logging (https://se.mathworks.com/matlabcentral/fileexchange/47046-automatic-experiment-simulation-logging), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

Fixed the "help" of the main file, logParametersAndResults.

1.0.0.0