Main Content

step

RunSystem objectalgorithm

Syntax

Description

example

step(obj,___)calls the System object™ and runs the algorithm. Depending on your System object,stepcan return output arguments.

Note

Starting in R2016b, instead of using thestep方法来执行工作on defined by the System object, you can call the object with arguments, as if it were a function. For example,y = step(obj,x)andy = obj(x)perform equivalent operations.

For details about the algorithm and input variables, see the individual System object reference pages.

Examples

collapse all

Create aCounterobject and set a property.

obj = Counter; obj.UseIncrement = false
obj = Counter with properties: UseIncrement: false UseWrapValue: true StartValue: 1 Increment: 1 WrapValue: 10

Run the counter.

step(obj,1)
ans = 2

Input Arguments

collapse all

System object whose algorithm you want to run. Depending on the System object, additional input arguments might be required.

Extended Capabilities

Version History

Introduced in R2010a