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 &... matlab.system.mixin.Propagates
getDiscreteStateSpecificationImpl | Discrete state size, data type, and complexity |
getOutputDataTypeImpl | Data types of output ports |
getOutputSizeImpl | Sizes of output ports |
isOutputComplexImpl | Complexity of output ports |
isOutputFixedSizeImpl | Fixed- or variable-size output ports |
propagatedInputComplexity | Complexity of input during Simulink propagation |
propagatedInputDataType | Data type of input during Simulink propagation |
propagatedInputFixedSize | Fixed-size status of input during Simulink propagation |
propagatedInputSize | Size 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.