This solution is outdated. To rescore this solution, sign in.
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
|
Increment a number, given its digits
562 Solvers
Compute a dot product of two vectors x and y
750 Solvers
228 Solvers
327 Solvers
154 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!