|On this page…|
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.
To use System objects, you must first create an object. For example,
Hram = hdlram % Create default hdlram object, H
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.
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.
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.
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 .