Recursive Least Squares Filter

Implementation of RLS filter for noise reduction.

You are now following this Submission

[e,w]=RLSFilterIt(n,x,fs) is an implementation of the RLS filter for noise reduction. Argument n is the interference signal, while x is the desired signal corrupted by the noise interference. Argument fs is the sampling frequency of the inputs, n and x. Additionally, parameters e and w are the filtered signal and filter coefficients, respectively. The program follows the notation used in Haykin's 'Adaptive Filter Theory' from 2002.

The function includes a simple example that removes additive white noise from a sine tone, and the SNR of the tone to the noise can be adjusted to examine the performance of the filter. Input signals can also be provided.

The code is well commented, and I would appreciate any feedback and constructive criticism. Thanks

Cite As

Ryan Fuller (2026). Recursive Least Squares Filter (https://www.mathworks.com/matlabcentral/fileexchange/36858-recursive-least-squares-filter), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.4.0.0

Removed extra license file.

1.3.0.0

Updated file with description of function arguments and output parameters.

1.1.0.0

Included description of arguments.

1.0.0.0