Mixin classes are partial classes that you can combine in various
combinations to form desired behaviors using multiple inheritance.
System objects are composed of a base class, matlab.System
and
may include one or more mixin classes. You specify the base class
and mixin classes on the first line of your class definition file.
The following mixin classes are available for use with System objects.
matlab.system.mixin.CustomIcon
—
Defines a block icon for System objects in the MATLAB
System block
matlab.system.mixin.FiniteSource
—
Adds the isDone
method to System objects that are
sources
matlab.system.mixin.Nondirect
—
Allows the System object™, when used in the MATLAB
System block, to support nondirect feedthrough by making the
runtime callback functions, output
and update
available
matlab.system.mixin.Propagates
—
Enables System objects to operate in the MATLAB
System block using the interpreted execution