dcaro_WAAF

Version 1.0.4 (2.72 KB) by Diego Caro
Wavelet-Assisted Adaptative Filter to remove Ocular Artifacts from EEG signals. Computationally efficient for Real-Time applications.
7 Downloads
Updated 18 Nov 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 (2026). dcaro_WAAF (https://nl.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
Version Published Release Notes
1.0.4

Updated image.

1.0.3

Simplified a for loop, no major changes.

1.0.2

Added weights returned by RLS to output arguments.

1.0.1

Fixed gain equation.

1.0.0