This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Advance tracking scenario simulation by one time step


isrunning = advance(sc)


isrunning = advance(sc) advances the tracking scenario simulation, sc, by one time step. To specify the step time, set the UpdateRate property of the trackingScenario object. The function returns the status, isrunning, of the simulation. advance updates a platform location only if the platform has an assigned path. You can generate assigned paths using the Motion property of a platform. To update platforms that have no assigned paths, you can set the Position, Velocity, Orientation, or AngularVelocity properties at any time during the simulation.

Input Arguments

expand all

Tracking scenario, specified as a trackingScenario object.

Output Arguments

expand all

The run-state of the simulation, returned as 0 or 1. If isrunning is 1, the simulation is running. If isrunning is 0, the simulation has stopped. A simulation stops when either of these conditions is met:

  • The stop time is reached.

  • Any platform reaches the end of its trajectory, and you have specified the platform Motion property using waypoints (with a waypointTrajectory object).

Units are in seconds.

Introduced in R2018b