Cody

Solution 1485650

Submitted on 10 Apr 2018 by Michael
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))

x = 3 4 6 y = -17

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

x = 0.7500 0.1400 0.6500 0.1000 -0.5400 0.8500 y = 0.2400 0.0300 0.3500 0.0500