Problem 43279. Weighted moving average

Solution 1012675

Submitted on 12 Oct 2016 by qaez
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
x1=[1 2 1]; y1=[1 2 2 4 5 6 6 8]; y_correct = conv(y1,x1/length(x1),'valid'); assert(sum(abs(your_fcn_name(x1,y1)-y_correct))<0.001)

Suggested Problems

More from this Author27

Community Treasure Hunt

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

Start Hunting!