Class:matlab.System
Number of outputs fromSystem object
num = getNumOutputsImpl(obj)
returns the number of outputs expected from the System object™.num
= getNumOutputsImpl(obj
)
If the signature ofstepImpl
oroutputImpl
does not includevarargout
, the System objectcandetermine the number of outputs from the method signature. In this case, you do not need to implement thegetNumOutputsImpl
method.
If the signature ofstepImpl
oroutputImpl
does includevarargout
, you can implement thegetNumOutputsImpl
method in your class definition file to determine the number of outputs. You can usenargout
in thestepImpl
method to get the number of outputs the object was called with.
You must setAccess = 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 theNontunable
attribute.