Number of outputs from calling the System object
num = getNumOutputs(obj)
example
num = getNumOutputs(obj) returns the number of outputs, num, from calling the object. This value changes when you alter properties that turn outputs on or off.
num
obj
If the object is a sink object, num equals zero.
collapse all
Create a Counter object and set a property.
Counter
obj = Counter; obj.UseIncrement = false
obj = Counter with properties: UseIncrement: 0 UseWrapValue: 1 StartValue: 1 Increment: 1 WrapValue: 10
Get the number of inputs and outputs needed to call the object.
in = getNumInputs(obj)
in = 1
out = getNumOutputs(obj)
out = 1
System object to query for the number of outputs.
The number of outputs from calling the System object.
For details, see System Objects in MATLAB Code Generation (MATLAB Coder).
getNumInputs