Cody

Solution 1998768

Submitted on 1 Nov 2019 by Tim
  • Size: 21
  • This is the leading solution.
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))

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