Cody

Solution 1523377

Submitted on 9 May 2018
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 3 4]; b = [2 4 6 8]; m_correct = 2; assert(isequal(razon_proporcionalidad(a,b),m_correct))

r = 2 2 2 2 ans = 2

Output argument "m" (and maybe others) not assigned during call to "razon_proporcionalidad". Error in Test1 (line 4) assert(isequal(razon_proporcionalidad(a,b),m_correct))

2   Fail
a = [1 2 3 4]; b = [1 4 2 8]; m_correct = 0; assert(isequal(razon_proporcionalidad(a,b),m_correct))

r = 1.0000 2.0000 0.6667 2.0000 ans = 0

Output argument "m" (and maybe others) not assigned during call to "razon_proporcionalidad". Error in Test2 (line 4) assert(isequal(razon_proporcionalidad(a,b),m_correct))

3   Fail
a = [3 5 12 1.5]; b = [10.5 17.5 42 5.25]; m_correct = 3.5; assert(isequal(razon_proporcionalidad(a,b),m_correct))

r = 3.5000 3.5000 3.5000 3.5000 ans = 3.5000

Output argument "m" (and maybe others) not assigned during call to "razon_proporcionalidad". Error in Test3 (line 4) assert(isequal(razon_proporcionalidad(a,b),m_correct))