Size of input during Simulink propagation
size = propagatedInputSize(obj,index)
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.