Cody

Solution 1395488

Submitted on 27 Dec 2017 by Erik Luiten
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))

a = 2 b = 2

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

a = 1 b = 2

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))

a = 4 b = 3

Suggested Problems