Save simulation log to file for later replay
saves the log for completed scenario simulation
ScenarioSim into file
Save a Simulation Log to a File
rrApp = roadrunner('C:\Project\TestRoute'); openScenario(rrApp,'TrajectoryCutIn'); ScenarioSim = createSimulation(rrApp);
Enable scenario simulation logging in MATLAB®
Start the simulation, and let it play to completion.
Save the scenario simulation log.
ScenarioSim — Scenario simulation
Scenario simulation for which log is saved, specified as a
FileName — Name of file to which simulation log is saved
character vector | string
Name of file in which simulation log is stored, specified as a character vector or
rrsimlog extension of the file is not included. The name
of the file must be unique in the current path.
FileName can be expressed in one of these ways, depending on
the location in which you want to save the file.
|Name of the file|
The file is saved in the current folder
Absolute path of the file
The file is saved in the specified path, which can be outside the current MATLAB search path.
Introduced in R2023a