Cody

Solution 2067914

Submitted on 24 Dec 2019 by Asif Newaz
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 = [45 106; 67 112]; y_correct = [48 9 ;70 15]; assert(isequal(fcn(x),y_correct))

x = 45 6 67 112 x = 45 6 67 12 x = 48 9 70 15

2   Pass
x = [100 101]; y_correct = [103 4]; assert(isequal(fcn(x),y_correct))

x = 100 1 x = 103 4

3   Pass
x = [99 100 101;102 103 104;0 1 2;200 300 400]; y_correct = [ 102 103 4;5 6 7;3 4 5;103 203 303]; assert(isequal(fcn(x),y_correct))

x = 99 100 101 2 103 104 0 1 2 200 300 400 x = 99 100 101 2 103 104 0 1 2 100 300 400 x = 99 100 101 2 3 104 0 1 2 100 300 400 x = 99 100 101 2 3 104 0 1 2 100 200 400 x = 99 100 1 2 3 104 0 1 2 100 200 400 x = 99 100 1 2 3 4 0 1 2 100 200 400 x = 99 100 1 2 3 4 0 1 2 100 200 300 x = 102 103 4 5 6 7 3 4 5 103 203 303