How do I create some code that will check angles and select the next point to draw a line to based on smallest angle?
Mostra commenti meno recenti
Hi,
I need to create the simplest code that will check the angles between a line connecting one central point and another and a line from the same initial central point to a triplet endpoint. I need the code to be able to select the correct central point to draw a line to based on smallest angle (see attached pics). Attached are the two files that contain the coordinates for the central points (f_points) and the endpoints (Triplets): The files are (1) F_points.mat (2) Triplets.mat

Below is the same image with lines being created:

Below is an image which gives an idea of what is needed:

5 Commenti
darova
il 16 Ott 2019
Do you additional information about neighbour points? How to find neighbour points?
Here is connections between points which distance is smaller than 400.
Some points should't be connected and some points should be (but they are not)

darova
il 16 Ott 2019
I scaled X coordinate before finding distance (x/2)
Steve
il 17 Ott 2019
darova
il 17 Ott 2019
How to find neighboring central points?
This is how looks like searching by distance

Risposte (1)
Categorie
Scopri di più su Biomedical Imaging in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!







