Main Content

propagatedInputFixedSize

Fixed-size status of input during Simulink propagation

Syntax

flag = propagatedInputFixedSize(obj,index)

Description

flag = propagatedInputFixedSize(obj,index) returns true or false to indicate whether an input argument of a System object™ is fixed size. index specifies the input for which to return the fixed-size flag.

You can use propagatedInputFixedSize only from within isOutputFixedSizeImpl. Use isOutputFixedSizeImpl when:

  • Your System object has more than one input or output.

  • The input fixed-size status determines the output fixed-size status.

  • The output fixed-size status must differ from the input fixed-size status.

Input Arguments

expand all

System object handle used to access properties, states, and methods specific to the object. If your propagatedInputFixedSize 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

Fixed-size status of the specified input, returned as true or false.

Examples

expand all

Get the fixed-size status of the third input and set the output to match it. Assume that the first and second inputs have no impact on the output.

methods (Access = protected)
   function outtype = isOutputFixedSizeImpl(obj)
      outtype = propagatedInputFixedSize(obj,3)
   end 
end

Version History

Introduced in R2014a