Cody

Solution 2022620

Submitted on 15 Nov 2019 at 6:55 by Le Cong Hieu
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 = [1 2 3 6; 4 5 6 15; 7 8 9 24; 12 15 18 45]; assert(isequal(mat_man(x),y_correct))

y = 1 2 3 6 4 5 6 15 7 8 9 24 12 15 18 45

2   Pass
x=[1,2;3,4;5,6]; y_correct =[1 2 3; 3 4 7;5 6 11;9 12 21]; assert(isequal(mat_man(x),y_correct))

y = 1 2 3 3 4 7 5 6 11 9 12 21