Documentation Center

  • Trial Software
  • Product Updates

matlab.system.mixin.Propagates class

Package: matlab.system.mixin

Output signal characteristics propagation mixin class

Description

matlab.system.mixin.Propagates is a class that defines the System object's output size, data type, and complexity. You implement the methods of this class when the output specifications cannot be inferred directly from the inputs during Simulink® model compilation. If you do not include this mixin and the output specifications cannot be inferred, an error occurs. You use this mixin class and its methods when your System object will be used in the MATLAB System block.

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

classdef ObjectName < matlab.System &...
    matlab.system.mixin.Propagates

The matlab.system.mixin.Propagates mixin is called by the MATLAB System block during Simulink model compilation.

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
propagatedInputComplexityGet input complexity during Simulink propagation
propagatedInputDataTypeGet input data type during Simulink propagation
propagatedInputFixedSizeGet input fixed status during Simulink propagation
propagatedInputSizeGet input size 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. Default values are used when you subclass from the matlab.system.mixin.Propagates mixin.

See Also

Tutorials

How To

Was this topic helpful?