Clear Filters
Clear Filters

How to create moving average filter in tide data?

3 views (last 30 days)
Hi... my name is fahrul. I try to filtering for smoothing my data in format file txt. In this file, there are 3 coloumns. first is date, second is time and the last coloumn is value of tide. I used two coloumns data, date and velue only to plot in matlab. Anybody can help me to make syntax filtering by using moving average??

Accepted Answer

Michael Haderlein
Michael Haderlein on 7 Apr 2015
If data is the array with your values and t is date/time:
plot(t, smooth(data));

More Answers (0)


Find more on Oceanography and Hydrology in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!