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.

Create System Objects

Write a MATLAB® class that creates and defines a new System object™

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.


setupImplInitialize System object
stepImplSystem output and state update equations
resetImplReset System object states
releaseImplRelease resources
infoImplInformation about System object
isDoneImplEnd-of-data flag
isInactivePropertyImplStatus of inactive property
processTunedPropertiesImplAction when tunable properties change
setPropertiesSet property values using name-value pairs when creating System object
validatePropertiesImplValidate property values of System object
getNumInputsImplNumber of inputs to the System object
getNumOutputsImplNumber of outputs from System object
isInputSizeLockedImplStatus of locked input size
validateInputsImplValidate inputs to System object
loadObjectImplLoad System object from MAT file
saveObjectImplSave System object in MAT file


matlab.SystemBase class for System objects
matlab.system.StringSetSet of valid character vector values
matlab.system.mixin.FiniteSourceFinite source mixin class


Input and Output

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.

Specify Locked Input Size

Specify a System object input whose size is locked.

Use Update and Output for Nondirect Feedthrough

Implement the updateImpl, outputImpl and isInputDirectFeedthroughImpl methods.

Performance and Efficiency

Best Practices for Defining System Objects

Write more efficient and optimized System objects.

Related Information

Was this topic helpful?