Main Content

propagatedInputComplexity

Complexity of input during Simulink propagation

Syntax

flag = propagatedInputComplexity(obj,index)

Description

flag = propagatedInputComplexity(obj,index) returns true or 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 isOutputComplexImpl when:

  • 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.

Input Arguments

expand all

System object handle used to access properties, states, and methods specific to the object. If your propagatedInputComplexity method does not use the object, you can replace this input with ~.

Index of the specified input. Do not count the obj in the index. The first input is always obj.

Output Arguments

expand all

Complexity of the specified input, returned as true or false

Examples

expand all

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

Version History

Introduced in R2014a