step - Advance simulation by specified increment - MATLAB (original) (raw)

Main Content

Advance simulation by specified increment

Syntax

Description

step advances the simulation to the next method in the current time step.

Note

This function is supported only for simulation debugging sessions started programmatically using the sldebug function or using the sim function with the 'debug' name-value argument.

step [amt](#mw%5F6260f859-e810-4a4a-a7e0-e748f618ff2e) advances the simulation by the amount specified by amt. For example, to advance the simulation to the first method in the next time step, specify amt astop.

Input Arguments

collapse all

Amount to advance simulation, specified as one of these options:

Example: step top advances the simulation debugging session to the first method in the next time step.

Data Types: char | string

Tips

After executing a block method in a programmatic simulation debugging session, the software displays this information in the MATLAB® Command Window:

The image shows typical Command Window output after calling thestep function.

Version History

Introduced in R2007a