getNumOutputsImpl
Class: matlab.System
Number of outputs from System object
Syntax
num = getNumOutputsImpl(obj)
Description
returns the number of outputs expected from the System object™. num = getNumOutputsImpl(obj)
If the signature of stepImpl or outputImpl does not
include varargout, the System object can determine
the number of outputs from the method signature. In this case, you do not need to implement
the getNumOutputsImpl method.
If the signature of stepImpl or outputImpl does
include varargout, you can implement the
getNumOutputsImpl method in your class definition file to determine the
number of outputs. You can use nargout in the stepImpl
method to get the number of outputs the object was called with.
Method Authoring Tips
You must set
Access = protectedfor 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 theNontunableattribute.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2011b