getNumInputs - Number of inputs required to call the System object - MATLAB (original) (raw)

Main Content

Number of inputs required to call the System object

Syntax

Description

[num](#bvleq02-1-num) = getNumInputs([obj](#bvleq02-1-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.

example

Examples

collapse all

Get Number of Inputs for an Object

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.

Input Arguments

collapse all

obj — System object™ to query

System object

System object to query for the number of inputs.

Output Arguments

collapse all

num — Number of inputs

nonnegative integer

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

Extended Capabilities

C/C++ Code Generation

Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2010a