Cody

Solution 1742125

Submitted on 4 Mar 2019 by danteliujie
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
a = [1 -2 7]; b = [2;6;-1]; out = [{[3.00 4.00 6.00]},{-17.00}]; assert(isequal(add_mult(a,b),out))

2   Pass
a = [0.2922 0.1557 0.3491; 0.4595 -0.4643 0.4340]; b = [0.4572 -0.3581; -0.0146 -0.0782; 0.3003 0.4157]; out = [{[0.75 0.14 0.65; 0.1 -0.54 0.85]},{[0.24 0.03; 0.35 0.05]}]; assert(isequal(add_mult(a,b),out))