Determine the percentage of proximity of a point with respect to the theoretical
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Alejandro Fernández
le 21 Fév 2021
Commenté : Alejandro Fernández
le 26 Fév 2021
Hello, I need to calculate the percentage of proximity that has a real point with respect to a theoretical one that is located in the center of a rectangle of 300 mm side by 340 mm wide.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/526374/image.png)
If the real point (shown in red) is just above the black, it should return 100% and as it moves away that value should decrease until it is at least 0%.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/526379/image.png)
Could someone tell me how this could be achieved or what I need to do research on to be able to do this?
1 commentaire
Image Analyst
le 21 Fév 2021
Obviously you can compute the distance between them, but what is "the percentage of proximity"? What's your definition for that?
Réponse acceptée
SaiDileep Kola
le 26 Fév 2021
You may assume an incircle or excircle and scale the distance with respect to radius of circle can be converted to percentage, you can think of similar approach with some other structure.
1 commentaire
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Polygons dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!