I have gone through the below related posts of filtering noise from the signals
MATLAB, How to filter a discrete signal?
MATLAB: Filter a noisy EKG signal
But the signal I want to filter contains noise which is not periodic as shown in the images below:


Can anyone suggest a filtering technique for the noise labeled with red colour in the image?