Using smoothing techniques plot graph.

1 view (last 30 days)
I have a problem submitted below. How to plot that graph? I can't graph it. I could get wrong graphs.

Accepted Answer

Ameer Hamza
Ameer Hamza on 23 May 2020
This is a moving average filter. You can use movmean(): https://www.mathworks.com/help/releases/R2020a/matlab/ref/movmean.html with 'EndPoints' option set to 'discard'
movmean(y, 3, 'Endpoints', 'discard') % first filter
movmean(y, 5, 'Endpoints', 'discard') % Second filter

More Answers (0)

Categories

Find more on 2-D and 3-D Plots 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!