matlab.System.stepImpl - System output and state update equations - MATLAB (original) (raw)

Class: matlab.System

System output and state update equations

Syntax

[output,output2,...] = stepImpl(obj,input1,input2,...)

Description

[[output](#bs4mvhr-output),output2,...] = stepImpl([obj](#bs4mvhr%5Fsep%5Fmw%5F353aa417-3412-46f8-81f1-586adf7da5a8),[input1,input2,...](#bs4mvhr%5Fsep%5Fmw%5Fcee6147f-e421-40a4-b75e-2f2097ee5356)) specifies the algorithm to execute when you run the System object™. Running the object calculates the outputs and updates the object’s state values using the inputs, properties, and state update equations. You can also run an object using function-like syntax instead of the step method. For example, if you define an FFT object using txfourier = dsp.FFT, you can run it simply by using txfourier().

For more information about the concepts of System object, see What Are System Objects?.

Run-Time Details

stepImpl is called via step when you run the System object. Users can also run the System object via the System object name, which calls step. For details, see Detailed Call Sequence.

Method Authoring Tips

Input Arguments

expand all

System object handle used to access properties, states, and methods specific to the object. If your stepImpl method does not use the object, you can replace this input with ~.

Output Arguments

Examples

expand all

Use the stepImpl method to increment two numbers.

methods (Access = protected) function [y1,y2] = stepImpl(obj,x1,x2) y1 = x1 + 1; y2 = x2 + 1; end end

Version History

Introduced in R2011b