Académique Documents
Professionnel Documents
Culture Documents
Contact Us
Store
Search
Create Account
Log In
Documentation
Center
Trial Software
Product Updates
Share
adaptfilt
Adaptive filter
Syntax
ha = adaptfilt.algorithm('input1',input2,...)
Description
ha = adaptfilt.algorithm('input1',input2,...) returns the adaptive filter object ha that
uses the adaptive filtering technique specified by algorithm. When you construct an adaptive filter object,
include an algorithm specifier to implement a specific adaptive filter. Note that you do not enclose the algorithm
option in single quotation marks as you do for most strings. To construct an adaptive filter object you must supply
an algorithm string there is no default algorithm, although every constructor creates a default adaptive filter
when you do not provide input arguments such as input1 or input2 in the calling syntax.
For information on how to run data through your adaptive filter object, see the Adaptive Filter Syntaxes section of the
reference page forfilter.
Algorithms
For adaptive filter (adaptfilt) objects, the algorithm string determines which adaptive filter algorithm
your adaptfilt object implements. Each available algorithm entry appears in one of the tables along with a brief
description of the algorithm. Click on the algorithm in the first column to get more information about the associated
adaptive filter technique.
adaptfilt.adjlms
adaptfilt.blms
adaptfilt.blmsfft
adaptfilt.dlms
adaptfilt.filtxlms
adaptfilt.lms
adaptfilt.nlms
adaptfilt.sd
adaptfilt.se
adaptfilt.ss
For further information about an adapting algorithm, refer to the reference page for the algorithm.
adaptfilt.ftf
adaptfilt.qrdrls
adaptfilt.hrls
adaptfilt.hswrls
adaptfilt.rls
adaptfilt.algorithm String
adaptfilt.swrls
adaptfilt.swftf
For more complete information about an adapting algorithm, refer to the reference page for the algorithm.
adaptfilt.ap
Use the affine projection algorithm that uses direct matrix inversion
adaptfilt.apru
Use the affine projection algorithm that uses recursive matrix updating
adaptfilt.bap
To find more information about an adapting algorithm, refer to the reference page for the algorithm.
adaptfilt.fdaf
adaptfilt.pbfdaf
adaptfilt.pbufdaf
adaptfilt.tdafdct
adaptfilt.tdafdft
adaptfilt.ufdaf
For more information about an adapting algorithm, refer to the reference page for the algorithm.
adaptfilt.gal
adaptfilt.lsl
adaptfilt.qrdlsl
For more information about an adapting algorithm, refer to the reference page for the algorithm.
fvtool(objectname)
to launch FVTool and work with your object.
Some methods share their names with functions in Signal Processing Toolbox software, or even functions in this
toolbox. Functions that share names with methods behave in a similar way. Using the same name for more than one
function or method is called overloadingand is common in many toolboxes.
Method
Description
adaptfilt/coefficients
adaptfilt/filter
adaptfilt/freqz
adaptfilt/grpdelay
adaptfilt/impz
adaptfilt/info
adaptfilt/isfir
adaptfilt/islinphase
adaptfilt/ismaxphase
adaptfilt/isminphase
adaptfilt/isreal
Method
Description
adaptfilt/isstable
adaptfilt/maxstep
adaptfilt/msepred
adaptfilt/msesim
adaptfilt/phasez
adaptfilt/reset
adaptfilt/stepz
adaptfilt/tf
adaptfilt/zerophase
adaptfilt/zpk
Return a matrix containing the instantaneous adaptive filter zero, pole, and gain values
adaptfilt/zplane
get(ha,'property')
To see all properties for an object, use
get(ha)
Changing Object Properties
To set specific properties, use
set(ha,'property1',value1,'property2',value2,..
.)
You must use single quotation marks around the property name so MATLAB treats them as strings.
Copying an Object
To create a copy of an object, use copy.
ha2 = copy(ha)
Note Using the syntax ha2 = ha copies only the object handle and does not create a new object ha and ha2 are not independent. When y
change the characteristics of ha2, those of ha change as well.
States stores the current states of the filter. Before the filter is applied, the
states correspond to the initial conditions and after the filter is applied, the states
Examples
Construct an LMS adaptive filter object and use it to identify an unknown system. For this example, use 500 iteration
of the adapting process to determine the unknown filter coefficients. Using the LMS algorithm represents one of the
most straightforward technique for adaptive filters.
x = randn(1,500);
% Input to the filter
b = fir1(31,0.5);
% FIR system to be identified
n = 0.1*randn(1,500); % Observation noise signal
d = filter(b,1,x)+n; % Desired signal
mu = 0.008;
% LMS step size.
ha = adaptfilt.lms(32,mu);
[y,e] = filter(ha,x,d);
subplot(2,1,1); plot(1:500,[d;y;e]);
title('System Identification of an FIR Filter');
legend('Desired','Output','Error');
xlabel('Time Index'); ylabel('Signal Value');
subplot(2,1,2); stem([b.',ha.coefficients.']);
legend('Actual','Estimated');
xlabel('Coefficient #'); ylabel('Coefficient Value');
grid on;
See Also
dfilt | filter | mfilt
Was this topic helpful?
Preventing Piracy
Privacy Policy
Trademarks
Patents
Site Help
1994-2013 The MathWorks, Inc.