Main Content

step

Run System object algorithm

Description

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

Note

The syntax y = step(obj,x) is not recommended. Use the syntax y = obj(x) instead to call the System object with arguments, as if it were a function. When you call the object as a function, the step method is called to run the algorithm.

example

Examples

collapse all

Use the step method to run the algorithm for System object counter. Refer to the example in setup for the class definition of counter.

Create a Counter object and set a property.

obj = Counter;
obj.UseIncrement = false
obj = 
  Counter with properties:

    UseIncrement: false
    UseWrapValue: true
      StartValue: 1
       Increment: 1
       WrapValue: 10

Call the system object as a function to run the counter.

obj(1)

This is equivalent to using step to call the System object and run the algorithm.

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

expand all

Version History

Introduced in R2010a