Complexity of input during Simulink propagation
flag = propagatedInputComplexity(obj,index)
flag = propagatedInputComplexity(
false to indicate whether the input
argument for the indicated System object™ is complex.
index specifies the input for which to return
the complexity flag.
You can use
propagatedInputComplexity only from within the
isOutputComplexImpl method in your class definition file. Use
Your System object has more than one input or output.
The input complexity determines the output complexity.
The output complexity must differ from the input complexity.
obj— System object
System object handle used to access properties, states, and methods specific to the object. If
propagatedInputComplexity method does not use the object, you can replace this
index— Input index
Index of the specified input. Do not count the
obj in the
index. The first input is always
flag— Complexity flag
Complexity of the specified input, returned as
Get the complexity of the second input when you run the object and set the output to match it. Assume that the first input has no impact on the output complexity.
methods (Access = protected) function outcomplx = isOutputComplexImpl(obj) outcomplx = propagatedInputComplexity(obj,2); end end