| Communications Toolbox | ![]() |
After you have chosen the adaptive algorithm you want to use, you must indicate your choice when creating the equalizer object mentioned in Basic Procedure for Equalizing a Signal. The functions listed in the table below provide a way to indicate your choice of adaptive algorithm.
| Adaptive Algorithm Function | Type of Adaptive Algorithm |
|---|---|
| lms | Least mean square (LMS) |
| signlms | Signed LMS, signed regressor LMS, sign-sign LMS |
| normlms | Normalized LMS |
| varlms | Variable-step-size LMS |
| rls | Recursive least squares (RLS) |
| cma | Constant modulus algorithm (CMA) |
Two typical ways to use a function from the table are as follows:
Use the function in an inline expression when creating the equalizer object.
For example, the code below uses the lms function inline when creating an equalizer object.
eqlms = lineareq(10,lms(0.003));
Use the function to create a variable in the MATLAB workspace and then use that variable when creating the equalizer object. The variable is called an adaptive algorithm object.
For example, the code below creates an adaptive algorithm object named alg that represents the adaptive algorithm, and then uses alg when creating an equalizer object.
alg = lms(0.003); eqlms = lineareq(10,alg);
Note If you want to create an adaptive algorithm object by duplicating an existing one and then changing its properties, then see the important note in Duplicating and Copying Objects about the use of copy versus the = operator. |
In practice, the two ways are equivalent when your goal is to create an equalizer object or to equalize a signal.
| Specifying an Adaptive Algorithm | Accessing Properties of an Adaptive Algorithm | ![]() |
© 1994-2005 The MathWorks, Inc.