Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

getNumInputs

Number of inputs required to call the System object

Syntax

num = getNumInputs(obj)

Description

example

num = getNumInputs(obj) returns an integer, num, representing the number of inputs (not counting the object itself) that you must use when calling the object. This value changes when you alter properties that turn inputs on or off.

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

Examples

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

Query the number of inputs and outputs needed to call the object.

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

     1


out =

     1

Input Arguments

collapse all

System object to query for the number of inputs.

Output Arguments

collapse all

The number of inputs required to call the object, returned as an integer.

Extended Capabilities

Introduced in R2010a

Was this topic helpful?