Cody

Problem 43494. Weighted Convolution

Solution 1014848

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

Test Suite

Test Status Code Input and Output
1   Pass
x = 1; y = 1; z = 1; assert(isequal(weightedConv(x,y),z))

z = 1

2   Pass
x = 1:2; y = 3:4; z = [3 10]; assert(isequal(weightedConv(x,y),z))

z = 3 10

3   Pass
x = 1:3; y = 4:6; z = [4 13 38]; assert(isequal(weightedConv(x,y),z))

z = 4 13 38

4   Pass
x = 1:4; y = 5:8; z = [5 16 46 124]; assert(isequal(weightedConv(x,y),z))

z = 5 16 46 124

5   Pass
x = 1:10; y = 2:11; z = [2,7,22,64,176,464,1184,2944,7168,17152]; assert(isequal(weightedConv(x,y),z))

z = Columns 1 through 8 2 7 22 64 176 464 1184 2944 Columns 9 through 10 7168 17152

Suggested Problems

More from this Author30

Community Treasure Hunt

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

Start Hunting!