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.


Run System object algorithm





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


Starting in R2016b, instead of using the step method to perform the operation defined by the System object, you can call the object with arguments, as if it were a function. For example, y = step(obj,x) and y = obj(x) perform equivalent operations.

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


collapse all

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

Run the counter.

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

Introduced in R2010a