Documentation

Input and Output Specifications

Input and output size, data type, complexity, discrete state, input propagation, global variables, and sample time inheritance for System object™

Methods

getOutputSizeImpl Sizes of output ports
getOutputDataTypeImpl Data types of output ports
isOutputComplexImpl Complexity of output ports
isOutputFixedSizeImpl Fixed- or variable-size output ports
getDiscreteStateSpecificationImpl Discrete state size, data type, and complexity
allowModelReferenceDiscreteSampleTimeInheritanceImpl Model reference sample time inheritance status for discrete sample times
getGlobalNamesImpl Global variable names for MATLAB System block
propagatedInputComplexity Complexity of input during Simulink propagation
propagatedInputDataType Data type of input during Simulink propagation
propagatedInputFixedSize Fixed-size status of input during Simulink propagation
propagatedInputSize Size of input during Simulink propagation

Classes

matlab.System Base class for System objects
matlab.system.mixin.Propagates Signal characteristics propagation mixin class

Examples and How To

Set Output Size

This example shows how to specify the size of a System object output using the getOutputSizeImpl method.

Set Output Data Type

This example shows how to specify the data type of a System object output using the getOutputDataTypeImpl method.

Set Output Complexity

This example shows how to specify whether a System object output is complex or real using the isOutputComplexImpl method.

Specify Whether Output Is Fixed- or Variable-Size

This example shows how to specify that System object output is fixed- or variable-size.

Specify Discrete State Output Specification

This example shows how to specify the size, data type, and complexity of a discrete state property using the getDiscreteStateSpecificationImpl method.

Set Model Reference Discrete Sample Time Inheritance

This example shows how to disallow model reference discrete sample time inheritance for a System object.

Use Enumerations in System Objects

Define enumerated data for use in System objects

Use Global Variables in System Objects

Define global variables for use in System objects

Define System Object for Use in Simulink

Develop System block and interactively preview block dialog box (with Simulink® only).

Concepts

What Are System Objects?

Defines System objects and key uses

What Are Mixin Classes?

Mixin classes description

System Object Methods

Using methods to process or obtain information on System objects

Methods Timing

Order in which methods are called and executed

System Design in Simulink Using System Objects

Steps for designing systems in Simulink using System objects

System Objects in MATLAB Code Generation

Special considerations for using System objects in code generated from

MATLAB®

Was this topic helpful?