Cody

Solution 1891311

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

ans = 3 1 x = 3 0 0 0 4 0 0 0 6 y = -17

Assertion failed.

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

ans = 3 2 x = 0.7494 -0.5425 y = 0.2362 0.0283 0.3472 0.0522

Assertion failed.