Cody

Solution 2135258

Submitted on 21 Feb 2020 by Nitin Patige
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
C=[4; 1; 2]; R=[2 3 5]; M=[8 12 20; 2 3 5; 4 6 10]; assert(isequal(mul(C,R),M));

M = [] N = 8 12 20 M = 8 12 20 N = 2 3 5 M = 8 12 20 2 3 5 N = 4 6 10 M = 8 12 20 2 3 5 4 6 10

2   Pass
C=[1; 1; 1]; R=[1 1]; M=ones(3,2); assert(isequal(mul(C,R),M));

M = [] N = 1 1 M = 1 1 N = 1 1 M = 1 1 1 1 N = 1 1 M = 1 1 1 1 1 1

3   Pass
C=[1;2;3;0]; R=[7,2]; M=[7 2; 14 4; 21 6; 0 0]; assert(isequal(mul(C,R),M));

M = [] N = 7 2 M = 7 2 N = 14 4 M = 7 2 14 4 N = 21 6 M = 7 2 14 4 21 6 N = 0 0 M = 7 2 14 4 21 6 0 0