How can the plot be divided into 2 using the graph line?
Afficher commentaires plus anciens
Hello everyone,
I have a graph that I obtained with the help of the RRT algorithm.
In addition, I have an array of points that are on the plot as you can see.
I want to write a function \ use a classification algorithm (or any other machine learning algorithm) to divide the points into 2 using the graph (points on the right side of the graph and points on the left side)
How can this be done? I tried several options but failed.. :/
I would be very happy to help! :)


Réponse acceptée
Plus de réponses (2)
Image Analyst
le 29 Oct 2023
It looks like all the points on the right have a y value greater than about 6, so just do
rightIndexes = (y >= 6);
xRight = x(rightIndexes);
yRight = y(rightIndexes);
xLeft = x(~rightIndexes);
yLeft = y(~rightIndexes);
3 commentaires
Yovel
le 2 Nov 2023
Dyuman Joshi
le 2 Nov 2023
Is the route completely random or can a relation/observation be identified?
And you have not defined what is the criteria/logic to be used for dividing points to the left and right side.
Yovel
le 2 Nov 2023
Catégories
En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



