| Filter Design Toolbox | ![]() |
Construct an adaptive FIR filter object that uses the sign-sign algorithm
Syntax
Description
ha = adaptfilt.se(l,step,leakage,coeffs,states)
constructs an FIR sign-error adaptive filter ha.
Input Arguments
Entries in the following table describe the input arguments for adaptfilt.ss.
adaptfilt.ss can be called for a block of data, when x and d are vectors, or in "sample by sample mode" using a For-loop with the method filter:
for n = 1:length(x) ha = adaptfilt.ss(25,0.9); [y(n),e(n)] = filter(ha,(x(n),d(n),s)); % The property values of ha may be modified here. end
adaptfilt.ss Object Properties
In the syntax for creating the adaptfilt object, most of the input options are properties of the object you create. This table list all the properties for sign-sign objects, their default values, and a brief description of the property..
Examples
Demonstrating adaptive line enhancement using a 32-coefficient FIR filter provides a good introduction to the sign-sign algorithm.
d = 1; % number of samples of delay ntr= 5000; % number of iterations v = sin(2*pi*0.05*[1:ntr+d]); % sinusoidal signal n = randn(1,ntr+d); % noise signal x = v(1:ntr)+n(1:ntr); % Delayed input signal d = v(1+d:ntr+d)+n(1+d:ntr+d); % desired signal mu = 0.0001; % sign-sign step size ha = adaptfilt.ss(32,mu); [y,e] = filter(ha,x,d); subplot(2,1,1); plot(1:ntr,[d;y;v(1+d:ntr+d)]); axis([ntr-100 ntr -3 3]); title('Adaptive Line Enhancement of a Noisy Sinusoidal Signal'); legend('Observed','Enhanced','Original'); xlabel('Time Index'); ylabel('Signal Value'); [pxx,om] = pwelch(x(ntr-1000:ntr)); pyy = pwelch(y(ntr-1000:ntr)); subplot(2,1,2); plot(om/pi,10*log10([pxx/max(pxx),pyy/max(pyy)])); axis([0 1 -60 20]); legend('Observed','Enhanced'); xlabel('Normalized Frequency (\times \pi rad/sample)'); ylabel('Power Spectral Density'); grid on;
See Also
adaptfilt.se, adaptfilt.sd, adaptfilt.lms
References
Lucky, R.W, "Techniques For Adaptive Equalization of Digital Communication Systems," Bell Systems Technical Journal, vol. 45, pp. 255-286, Feb. 1966
Hayes, M., Statistical Digital Signal Processing and Modeling, New York, Wiley, 1996.
| adaptfilt.se | adaptfilt.swftf | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |