Contenido principal

advance

R2026b

Advance 3D scenario by one time step

Since R2026b

    Description

    Add-On Required: This feature requires the 3D Scenarios add-on.

    isrunning = advance(scnro) advances the simulation of the specified 3D scenario. The first use of advance transitions the scenario from the setup state to the running state. Subsequent uses advance the simulation by one time step. The function returns the status of the simulation.

    For more information about simulating 3D scenarios, see Simulate 3D Scenarios.

    Input Arguments

    collapse all

    3D scenario, specified as a Scenario object.

    Output Arguments

    collapse all

    Run state of the simulation, returned as a 1 or 0 of data type logical.

    • If isrunning is 1, the simulation is running.

    • If isrunning is 0, the simulation is complete.

    Version History

    Introduced in R2026b