This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
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 = [ 1.5000 2.2500 2.7500 3.5000
2.0000 2.5000 2.5000 3.0000
1.7500 2.7500 3.5000 3.2500]
assert(isequal(smooth2dconv(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
ans =
1.5000 2.2500 2.7500 3.5000
2.0000 2.5000 2.5000 3.0000
1.7500 2.7500 3.5000 3.2500
|
2 | Pass |
A=[1 1 3 4
1 2 1 2
2 3 3 1
1 1 4 4];
B=[1 2;2 1];
y_correct = [ 1.7500 3.0000 3.7500
3.0000 3.2500 3.0000
2.7500 3.7500 4.2500]
assert(isequal(smooth2dconv(A,B),y_correct))
y_correct =
1.7500 3.0000 3.7500
3.0000 3.2500 3.0000
2.7500 3.7500 4.2500
ans =
1.7500 3.0000 3.7500
3.0000 3.2500 3.0000
2.7500 3.7500 4.2500
|
309 Solvers
100 Solvers
128 Solvers
122 Solvers
Set x value to each even index of vector y.
37 Solvers