Cody

Solution 1741355

Submitted on 3 Mar 2019 by Athi
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))

Suggested Problems

More from this Author4