Cody

Solution 1706357

Submitted on 12 Jan 2019
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
x = [1 2 0 1]; h = [2 2 1 1]; y_correct = [6 7 6 5]; assert(isequal(circconv(x,h),y_correct))

Matrix dimensions must agree. Error in circconv (line 4) ans+conv(h,circshift(x,-i)); Error in Test1 (line 4) assert(isequal(circconv(x,h),y_correct))

2   Fail
x = [1 2 3 4 5]; h = [-5 3 -2 4 3]; y_correct = [20 8 21 4 -8]; assert(isequal(circconv(x,h),y_correct))

Matrix dimensions must agree. Error in circconv (line 4) ans+conv(h,circshift(x,-i)); Error in Test2 (line 4) assert(isequal(circconv(x,h),y_correct))