step - Run System object algorithm - MATLAB (original) (raw)
Main Content
Run System object algorithm
Syntax
Description
step([obj](#bvleq0o-1-obj),___)
calls the System objectâ„¢ and runs the algorithm. Depending on your System object, step
can return output arguments.
Note
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. For more information about the concepts of System object, see What Are System Objects?.
Examples
Use the step
method to run the algorithm for System objectcounter
. 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
Run the counter.
Input Arguments
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