This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Number of outputs from calling the System object


num = getNumOutputs(obj)



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.

If the object is a sink object, num equals zero.


collapse all

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.

in = getNumInputs(obj)
in = 1
out = getNumOutputs(obj)
out = 1

Input Arguments

collapse all

System object to query for the number of outputs.

Output Arguments

collapse all

The number of outputs from calling the System object.

Extended Capabilities

Introduced in R2010a