Esta página aún no se ha traducido para esta versión. Puede ver la versión más reciente de esta página en inglés.

Crear System objects

Escribir una clase de MATLAB® que cree y defina un nuevo System object™

Para poder definir un System object propio, se deben personalizar los métodos de implementación. Use herramientas gráficas para explorar la extensa API y crear System objects. Por ejemplo, se pueden insertar métodos para inicializar, ejecutar, restablecer y terminar System objects. Para ver una introducción a la definición de un System object, consulte Define Basic System Objects.

Métodos

expandir todo

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
isTunablePropertyDataTypeMutableImplSet whether tunable properties can change data type
isDiscreteStateSpecificationMutableImplControl whether discrete states can change data type
processTunedPropertiesImplAction when tunable properties change
setPropertiesSet property values using name-value pairs when creating System object
validatePropertiesImplValidate property values of System object
getPropertyGroupsImplProperty groups for System object display
getNumInputsImplNumber of inputs to the System object
getNumOutputsImplNumber of outputs from System object
getNumInputsNumber of inputs required to call the System object
getNumOutputsNumber of outputs from calling the System object
isInputComplexityMutableImplSet whether System object input complexity can change
isInputDataTypeMutableImplSet whether System object input data type can change
isInputSizeMutableImplSet whether System object input size can change
narginNumber of input arguments for System object
nargoutNumber of output arguments for System object
processInputSpecificationChangeImplPerform actions when input size, complexity, or data type change
validateInputsImplValidate inputs to System object
loadObjectImplLoad System object from MAT file
saveObjectImplSave System object in MAT file

Clases

matlab.SystemBase class for System objects
matlab.system.mixin.FiniteSourceFinite source mixin class

Temas

Entrada y salida

Change the Number of Inputs

This example shows how to set the number of inputs for a System object™ with and without using getNumInputsImpl.

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.

Información relacionada