This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

What Are Mixin Classes?

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

Was this topic helpful?