Cody

Solution 1702824

Submitted on 5 Jan 2019 by Nikolaos Nikolaou
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 5 6;7 8 9]; y_correct = 40; assert(isequal(AddMatrixLim(x),y_correct))

t1 = 1 2 3 t2 = 3 6 9 t2 = 6 9 t3 = 1 4 7 t3 = 4 7 t4 = 7 8 9 t4 = 8 9 t4 = 8 t = 1 2 3 6 9 4 7 8 y = 40

2   Pass
x= [1 5 6 7; 4 9 4 7; 9 4 2 1; 0 1 2 8] y_correct = 51; assert(isequal(AddMatrixLim(x),y_correct))

x = 1 5 6 7 4 9 4 7 9 4 2 1 0 1 2 8 t1 = 1 5 6 7 t2 = 7 7 1 8 t2 = 7 1 8 t3 = 1 4 9 0 t3 = 4 9 0 t4 = 0 1 2 8 t4 = 1 2 8 t4 = 1 2 t = 1 5 6 7 7 1 8 4 9 0 1 2 y = 51

Suggested Problems

More from this Author2