Cody

# Problem 1589. calculate linear convolution two vectors

Solution 2474510

Submitted on 4 Jun 2020
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   Fail
a = [1 2 3] b = [4 5 6] y_correct = [4 13 28 27 18]; assert(isequal(your_fcn_name(a,b),y_correct))

a = 1 2 3 b = 4 5 6

Undefined function 'Y' for input arguments of type 'double'. Error in your_fcn_name (line 12) y(i)=Y(i)+X(j)*H(i-j+1); Error in Test1 (line 4) assert(isequal(your_fcn_name(a,b),y_correct))

2   Fail
a = [3 4 0] b = [9 6 2 0 1] y_correct = [27 54 30 8 3 4 0]; assert(isequal(your_fcn_name(a,b),y_correct))

a = 3 4 0 b = 9 6 2 0 1

Undefined function 'Y' for input arguments of type 'double'. Error in your_fcn_name (line 12) y(i)=Y(i)+X(j)*H(i-j+1); Error in Test2 (line 4) assert(isequal(your_fcn_name(a,b),y_correct))

### Community Treasure Hunt

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

Start Hunting!