Dados dois vetores a = (x1, y1) e b = (x2, y2). Calcule a distância entre os vetores e verifique se estão perto (distancia < 10) ou longe caso contrário.
DistanciaVetores([10, 10], [20, 20]) = 'longe';
DistanciaVetores([1, 1], [4, 4]) = 'perto';
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers47
Suggested Problems
-
Project Euler: Problem 1, Multiples of 3 and 5
3664 Solvers
-
Generate N equally spaced intervals between -L and L
942 Solvers
-
07 - Common functions and indexing 3
425 Solvers
-
485 Solvers
-
460 Solvers
More from this Author20
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!