Cody

Solution 1638526

Submitted on 5 Oct 2018 by Erfan Kabiri
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 2; 3 4]; x1 = [4 3; 2 1]; y_correct = [ 8 5; 20 13]; assert(isequal(your_fcn_name(x, x1),y_correct))

y = 0 y = 4 y = 8 y = 8 0 y = 8 3 y = 8 5 y = 8 5 0 0 y = 8 5 12 0 y = 8 5 20 0 y = 8 5 20 0 y = 8 5 20 9 y = 8 5 20 13