Cody

Solution 1496045

Submitted on 17 Apr 2018 by J. S. Kowontan
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 3 4]; b = [2 4 6 8]; m_correct = 2; assert(isequal(razon_proporcionalidad(a,b),m_correct))

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

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