| Filter Design Toolbox | ![]() |
Adjoint LMS FIR adaptive filter that adapts using an adjoint LMS algorithm
Syntax
Description
ha = adaptfilt.adjlms(l,step,leakage,pathcoeffs,pathest,... constructs object
errstates,pstates,coeffs,states)
ha, an FIR adjoint LMS adaptive filter. l is the adaptive filter length (the number of coefficients or taps) and must be a positive integer. l defaults to 10 when you omit the argument. step is the adjoint LMS step size. It must be a nonnegative scalar. When you omit the step argument, step defaults to 0.1.
leakage is the adjoint LMS leakage factor. It must be a scalar between 0 and 1. When leakage is less than one, you implement a leaky version of the adjlms algorithm to determine the filter coefficients. leakage defaults to 1 specifying no leakage in the algorithm.
pathcoeffs is the secondary path filter model. This vector should contain the coefficient values of the secondary path from the output actuator to the error sensor.
pathest is the estimate of the secondary path filter model. pathest defaults to the values in pathcoeffs.
errstates is a vector of error states of the adaptive filter. It must have a length equal to the filter order of the secondary path model estimate. errstates defaults to a vector of zeros of appropriate length. pstates contains the secondary path FIR filter states. It must be a vector of length equal to the filter order of the secondary path model. pstates defaults to a vector of zeros of appropriate length. The initial filter coefficients for the secondary path filter compose vector coeffs. It must be a length l vector. coeffs defaults to a length l vector of zeros. states is a vector containing the initial filter states. It must be a vector of length l+ne-1, where ne is the length of errstates. When you omit states, it defaults to an appropriate length vector of zeros.
Properties of the Object
In the syntax for creating the adaptfilt object, the input options are properties of the object created. This table list all the properties for the adjoint LMS object, their default values, and a brief description of the property.
Example
Demonstrate active noise control of a random noise signal that runs for 1000 samples.
x = randn(1,1000); % Noise source g = fir1(47,0.4); % FIR primary path system model n = 0.1*randn(1,1000); % Observation noise signal d = filter(g,1,x)+n; % Signal to be canceled (desired) b = fir1(31,0.5); % FIR secondary path system model mu = 0.008; % Adjoint LMS step size ha = adaptfilt.adjlms(32,mu,1,b); [y,e] = filter(ha,x,d); plot(1:1000,d,'b',1:1000,e,'r'); title('Active Noise Control of a Random Noise Signal'); legend('Original','Attenuated'); xlabel('Time Index'); ylabel('Signal Value'); grid on;
See also
adaptfilt.dlms, adaptfilt.filtxlms
| adaptfilt | adaptfilt.ap | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |