propagatedInputSize
Size of input during Simulink propagation
Syntax
size = propagatedInputSize(obj,index)
Description
returns, as a vector, the input size of the specified System object™. The size
= propagatedInputSize(obj
,index
)index
specifies the input for which to return the
size information. (Do not count the obj
in the
index
. The first input is always obj
.)
You can use propagatedInputSize
only from within the getOutputSizeImpl
method in your class definition file. Use
getOutputSizeImpl
when:
Your System object has more than one input or output.
The input size determines the output size.
The output size must differ from the input size.
Note
For variable-size inputs, the propagated input size from propagatedInputSize
differs depending on the
environment.
MATLAB —
propagatedInputSize
returns the size of the inputs used when you run the object for the first time.Simulink —
propagatedInputSize
returns the upper bound of the input sizes.
By default, in Simulink® the MATLAB System block recognizes 1-D input
signals and propagates 1-D output signal as 2-D. Use supports1DVectorsImpl
method to enable the 1-D inputs and outputs to be
recognized and propagated as 1-D signals, respectively.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2014a