MATLAB: Remove noise from EMG signal

emgnoise

Dears,
I need you advice for the best technique to remove spiky noise found in the EMG signals (attached in the post). I know that was because of the sensor it self, but is there any way to retain orginal signal and remove added noise or no way but terminating corrupted parts?

Best Answer

Those are actually sampling artifacts, not parts of the EMG signal. Probably the best way to deal with them is to use findpeaks or islocalmax to identify them. Then, once you have identified them, assign them NaN values, and then use the fillmissing function to interpolate them.
Related Question