Cody

Problem 43281. Two dimensional moving average

Solution 1005459

Submitted on 10 Oct 2016 by George Papazafeiropoulos
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
A=[1 2 3 4 5 1 2 2 2 3 2 3 3 3 4 1 1 4 4 2]; B=[1 1;1 1]; y_correct = conv2(A,B/prod(size(B)),'valid') assert(isequal(your_fcn_name(A,B),y_correct))

y_correct = 1.5000 2.2500 2.7500 3.5000 2.0000 2.5000 2.5000 3.0000 1.7500 2.7500 3.5000 3.2500

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!