Main Content

MATLAB Functions for Scenarios

Generate scenario variations, import and export scenarios, and simulate scenarios using MATLAB® (requires Automated Driving Toolbox™)

MATLAB functions enable you to change the attributes of the scenario to create many variations for automated tests. You can also use these functions to automate workflows such as loading scenarios, placing scenarios in different scenes, exporting scenarios, and simulating scenarios in the editor.

Objects

roadrunnerStart RoadRunner application using MATLAB (Since R2022a)

Functions

expand all

newScenarioCreate new scenario in RoadRunner Scenario using MATLAB (Since R2022a)
openScenarioOpen scenario in RoadRunner Scenario using MATLAB (Since R2022a)
saveScenarioSave scenario in RoadRunner Scenario using MATLAB (Since R2022a)
createSimulationCreate RoadRunner Scenario simulation using MATLAB (Since R2022a)
prepareSimulationSubmit simulation data to RoadRunner Scenario simulation engine using MATLAB (Since R2024a)
simulateScenarioSimulate RoadRunner scenario using MATLAB (Since R2024a)
getScenarioVariableGet the value of RoadRunner scenario variable using MATLAB (Since R2022a)
getAllScenarioVariablesGet the values of all RoadRunner scenario variables using MATLAB (Since R2023b)
setScenarioVariableSet RoadRunner scenario variable using MATLAB (Since R2022a)
remapAnchorRemap anchors in RoadRunner Scenario in MATLAB (Since R2022b)
getAnchorsRetrieve anchor attributes from RoadRunner scenario using MATLAB (Since R2024a)
exportScenarioExport scenario from RoadRunner Scenario using MATLAB (Since R2022a)
importScenarioImport file into RoadRunner Scenario using MATLAB (Since R2022a)

Topics