matlab.system.mixin.Propagates class

Package: matlab.system.mixin

Signal characteristics propagation mixin class


matlab.system.mixin.Propagates specifies the output size, data type, and complexity of a System object™. Use this mixin class and its methods when you will include your System object in Simulink® via the MATLAB System block. This mixin is called by the MATLAB System block during Simulink model compilation.

Implement the methods of this class when Simulink cannot infer the output specifications directly from the inputs or when you want bus support. If you do not include this mixin, Simulink cannot propagate the output or bus data type, an error occurs.

To use this mixin, subclass from this matlab.system.mixin.Propagates in addition to subclassing from the matlab.System base class. Type the following syntax as the first line of your class definition file. ObjectName is the name of your System object.

classdef ObjectName < matlab.System &...


getDiscreteStateSpecificationImplDiscrete state size, data type, and complexity
getOutputDataTypeImplData types of output ports
getOutputSizeImplSizes of output ports
isOutputComplexImplComplexity of output ports
isOutputFixedSizeImplFixed- or variable-size output ports
propagatedInputComplexityComplexity of input during Simulink propagation
propagatedInputDataTypeData type of input during Simulink propagation
propagatedInputFixedSizeFixed-size status of input during Simulink propagation
propagatedInputSizeSize of input during Simulink propagation


If your System object has exactly one input and one output and no discrete property states, or if you do not need bus support, you do not have to implement any of these methods. The matlab.system.mixin.Propagates provides default values in these cases.

Was this topic helpful?