Main Content
ScenarioSimulation
Create, access, and control RoadRunner Scenario simulations from MATLAB
Since R2022a
Description
A ScenarioSimulation
object is the representation of a
RoadRunner Scenario simulation in MATLAB®. Use a ScenarioSimulation
object to perform these actions.
Control a simulation: start, pause, resume, stop, or move the simulation a single step forward.
Access and modify the runtime parameters of a simulation.
Report custom diagnostic messages during a simulation.
Creation
You can create a ScenarioSimulation
object using the createSimulation
function.
Object Functions
addObserver | Add observer to scenario simulation |
get | Get value of scenario simulation parameter |
load | Load saved simulation log |
removeObserver | Remove observer from scenario simulation |
reportDiagnostic | Report information, warning, or error message during scenario simulation |
save | Save simulation log to file for later use |
set | Set value of scenario simulation parameter |
Simulink.ScenarioSimulation.find | Return scenario simulations or actors in current MATLAB session |
Examples
Version History
Introduced in R2022a
See Also
roadrunner
| openScenario
| createSimulation
| ActorSimulation
| sensorSimulation
| ActorModel
| ScenarioLog