Main Content

play

Play tracking scenario simulation in player

Since R2023a

Description

play(scenario) plays the tracking scenario in the Tracking Scenario Player app. The app allows you to run, pause, step forward, step back, or jump to a specific time stamp.

Note

The play function has these limitations:

  • The IsEarthCentered property of the scenario must be false.

  • The function ignores the StopTime and UpdateRate properties of the scenario because it relies on the times of arrival of trajectories and the update rates of sensors in the scenario to determine these two properties.

  • The function only displays fusionRadarSensor objects and monostaticRadarSensor objects. The function does not display other sensors.

  • The function does not display emitters.

  • The player assumes the north-east-down (NED) reference frame. Therefore, use nonpositive z-coordinates of position to show platforms that are above ground level.

Tip

Instead of directly playing a trackingScenario object, you can record the scenario into a trackingScenarioRecording object and play the recording in Tracking Scenario Player using the play object function. This alternate approach can save you time by not having to run the scenario every time.

example

Examples

collapse all

Load a trackingScenario object and set the UpdateRate property to 0.

load("ATCScenario.mat","scenario")
% Set the UpdateRate property of the scenario as 0 to avoid the player warning that
% the player determines the update rate based on trajectories and sensors.
scenario.UpdateRate = 0;

Play the tracking scenario.

play(scenario)

An app opens and the scenario starts playing.

Input Arguments

collapse all

Tracking scenario, specified as a trackingScenario object.

Version History

Introduced in R2023a