PeriodicMeanSubtrac​tionForHumNoise

This subtraction filter analyses the shape of the power line interference ("Hum noise") and subtracts it from the time series. Method: movin

https://github.com/lussanet/PeriodicMeanSubtractionForHumNoise

You are now following this Submission

%% Syntax:
% Filtered,Filter] = periodicMedianFilter(RawData, HumPeriod)
% Filtered,Filter] = periodicMedianFilter(RawData, HumPeriod, Window)
% Filtered,Filter] = periodicMedianFilter(RawData, HumPeriod, Window, Plot, PowerLineHum)
%
%% mandatory parameters:
% RawData = series of data with power line hum
% Humperiod = the (whole) number of samples over which the hum repeats (e.g. 1000/50=20 if sample freq=1000)
%
%% optional parameters
% Window [optional] = the number of periods on the sliding window (default 50; 0=entire range) % Plot [optional] default 0=none; 1=make a comparison plot and FFT; 2=also plot the filter
%

Cite As

Marc de Lussanet (2026). PeriodicMeanSubtractionForHumNoise (https://github.com/lussanet/PeriodicMeanSubtractionForHumNoise), GitHub. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes Action
1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.