https://se.mathworks.com/help/dsp/ref/dsp.dcblocker-system-object.html
dsp.DCBlocker - Block DC component (offset) from input signal - MATLAB
The dsp.DCBlocker System object removes the DC offset from each channel (column) of the input signal.
dspblockdccomponentoffset