You can define your own System object by customizing the implementation methods. Use graphical tools to explore the comprehensive API for creating System objects. For example, you can insert methods to initialize, run, reset, and terminate System objects. For an introduction to defining a System object, see Define Basic System Objects.
matlab.System | Base class for System objects |
matlab.system.StringSet | Set of valid character vector values |
matlab.system.mixin.FiniteSource | Finite source mixin class |
Create a basic System
object with the stepImpl
method.
Specify property attributes to limit the type, visibility, and value of properties.
Change Number of Inputs or Outputs
Create a System object with two inputs and two outputs.
Define Composite System Objects
Define System objects that include other System objects as properties.
Handle Input Specification Changes
Implement methods to restrict when System object input complexity, data type, or size can change or implement a method to react when input specifications change.
Best Practices for Defining System Objects
Write more efficient and optimized System objects.
Customize System Objects for Simulink (Simulink)
System Objects in MATLAB Code Generation (MATLAB Coder)