dcaro_WAAF

Version 1.0.2 (2.75 KB) by Diego Caro
Wavelet-Assisted Adaptative Filter to remove Ocular Artifacts from EEG signals. Computationally efficient for Real-Time applications.
1 Download
Updated 24 Oct 2025

View License

dcaro_WAAF: Wavelet-Assisted Adaptative Filter.
This function removes Ocular Artifacts from EEG signals by creating a reference signal that contains only these artifacts using a soft treshold in low frequency levels of a wavelet decomposition. This reference signal is removed from the original EEG through an Adaptative Noise Cancelling algorithm based on Recursive Least Squares.
This function requires the Wavelet Toolbox.
Original paper:
Peng, H., Hu, B., Shi, Q., Ratcliffe, M., Zhao, Q., Qi, Y., & Gao, G. (2013). Removal of ocular artifacts in EEG—An improved approachcombining DWT and ANC for portable applications. IEEE journal of biomedical and health informatics, 17(3), 600-607.
Soft treshold value obtained from:
Coifman, R. R., & Donoho, D. L. (1995). Translation-invariant de-noising. In Wavelets and statistics (pp. 125-150). New York, NY: Springer New York.

Cite As

Diego Caro (2025). dcaro_WAAF (https://uk.mathworks.com/matlabcentral/fileexchange/182384-dcaro_waaf), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2023a
Compatible with R2023a and later releases
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.2

Added weights returned by RLS to output arguments.

1.0.1

Fixed gain equation.

1.0.0