Problem 44551. Calcular la razón de proporcionalidad
Dadas dos magnitudes (a y b) en forma de vectores, crear una función que permita obtener la razón de proporcionalidad m sólo en aquellos casos en los que exista una relación de proporcionalidad directa entre ambas.
- Ejemplo 1:
a = [1 2 3 4] b = [2 4 6 8]
Relación proporcional de razón m = 2.
- Ejemplo 2:
a = [1 2 3 4] b = [1 6 3 2]
No existe relación de proporcionalidad, por lo que m = 0.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers33
Suggested Problems
-
2365 Solvers
-
Calculate the area of a triangle between three points
3404 Solvers
-
372 Solvers
-
6236 Solvers
-
For a rectangle, if x is the length and 2x is width. Then find out x from the area of the rectangle?
108 Solvers
More from this Author4
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!