matlab.system.mixin.Propagates class

Package: matlab.system.mixin

Signal characteristics propagation mixin class

Description

matlab.system.mixin.Propagates defines the output size, data type, and complexity of a System object™. It 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. If you do not include this mixin in your class definition file and Simulink cannot infer the output specifications, an error occurs. Use this mixin class and its methods when you include your System object in Simulink via the MATLAB System block.

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 &...
    matlab.system.mixin.Propagates

Methods

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

    Note:   If your System object has exactly one input and one output and no discrete property states, you do not have to implement any of these methods. The matlab.system.mixin.Propagates provides default values in this case.

Was this topic helpful?