I have the raw data in time series.i am new to matlab software.please give me some ideas in matlab codes for filter to remove the noise from the signal.

1 view (last 30 days)
have the raw data in time series. i am new to matlab software. please give me some ideas in matlab codes for filter to remove the noise from the signal.

Answers (1)

Walter Roberson
Walter Roberson on 11 Dec 2012
filtered_data = (double(YourData(1:end-1)) + double(YourData(2:end))) ./ 2;
The above is simple moving average. There are shorter ways of programming this, such as
filtered_data = conv( YourData, [1 1]/2, 'same')
but the code I gave shows the averaging more clearly.
There are many other ways of removing noise from the signal, but you need to know something about what kind of noise it is before you can effectively remove it from the signal.

Categories

Find more on Simulink in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!