Documentation Center

  • Trial Software
  • Product Updates

Create System Objects

A System object™ is a MATLAB® object-oriented implementation of an algorithm. System objects extend MATLAB by enabling you to model dynamic systems represented by time-varying algorithms. System objects are well integrated into the MATLAB language, regardless of whether you are writing simple functions, working interactively in the command window, or creating large applications.

In contrast to MATLAB functions, System objects automatically manage state information, data indexing, and buffering, which is particularly useful for iterative computations or stream data processing. This enables efficient processing of long data sets.

    Note:   System objects predefined in the software do not support sparse matrices. System objects you define support sparse matrices (see ).

Create a System object

To use System objects, you must first create an object. For example,

Hram = hdlram         % Create default hdlram object, H 

Change a System object Property

In general, you should set the object properties before you use the step method to run data through the object. To change the value of a property, use this format,

H.RAMType = 'Dual Port'   % Set the RAMType property

The property values of the hdlram object, H, are displayed.

Check if a System object Property Has Changed

To check if a tunable property has changed since step was last called, use this syntax:

flag = isChangedProperty(H,'Normalize')

flag is true if the Normalize property of object H has changed.

Run a System object

To execute a System object, use the step method.

Y = step(H,X);       % Process input data, X

The output data from the step method is stored in Y, which, in this case, is port input and output data.

Display Available System Objects

To see a list of all the System objects for a particular package, type . To display help for specific objects, properties, or methods, see Find Help and Examples for System Objects .

Was this topic helpful?