Cody

# Problem 44551. Calcular la razón de proporcionalidad

Solution 1546572

Submitted on 2 Jun 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))

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

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

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