MATLAB: Remove high frequency noise

filternoise

I have a highly corrupted data set (blue in attached image). How do I remove the high frequency noise and recover the original signal (red)? I want to use a low pass Butterworth filter of first order.

Best Answer

There is a function in matlab called "butter" that creates the coefficients to a butterworth filter of order N with cut-off frequency Wn. See MATLAB help. Then the function "filter" can be used to filter the signal. Notice however that the functions uses normalized frequencies here.
Related Question