Stuart’s MATLAB Videos

Watch and Learn

Using convolution to smooth data with a moving average in MATLAB 5

Posted by Doug Hull,

I teach the introduction to MATLAB classes for all new hires in the Technical Support group at MathWorks. One of the attendees wanted to know how to do a moving average in MATLAB. This can be useful for filtering, or smoothing, noisy data. I realized I had never covered that on the blog, so here we go! I show how to do this from scratch using conv. If you have the Curve Fitting Toolbox, you might want to check out smooth, which adds some fancier smoothing methods.

70 views (last 30 days)  | |


To leave a comment, please click here to sign in to your MathWorks Account or create a new one.