getNumOutputs - Number of outputs from calling the System object - MATLAB (original) (raw)
Main Content
Number of outputs from calling the System object
Syntax
Description
[num](#bvleq1h-1-num) = getNumOutputs([obj](#bvleq1h-1-obj))
returns the number of outputs, num
, from calling the object. This value changes when you alter properties that turn outputs on or off.
If the object is a sink object, num
equals zero.
Examples
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
Get the number of inputs and outputs needed to call the object.
Input Arguments
System object to query for the number of outputs.
Output Arguments
The number of outputs from calling the System object.
Extended Capabilities
Version History
Introduced in R2010a