Class: matlab.System
Number of inputs to the System object
num = getNumInputsImpl(obj)
returns the number of inputs expected by the System object™.num
= getNumInputsImpl(obj
)
If the signature of stepImpl
or updateImpl
does not
include varargin
, the System object can determine the number of inputs
from the method signature. In this case, you do not need to include
getNumInputsImpl
in your class definition file.
If the signature of stepImpl
or updateImpl
does
include varargin
, you can implement the getNumInputsImpl
method in your class definition file to determine the number
of inputs. You can use nargin
in the stepImpl
method to get the number of inputs the object was called with.
You must set Access = protected
for this method.
You cannot modify any properties in this method.
If you set the return argument, num
, from an object
property, that object property must have the Nontunable
attribute.