How to find the boundary points in one direction

2 vues (au cours des 30 derniers jours)
Ganesh Nayak
Ganesh Nayak le 14 Juin 2019
Commenté : darova le 27 Juin 2019
Bild2.jpg
There are set of scatter points with X and Y coordinates. I want to collect the points ( atleast a few points) which are located at the right most end of the plot.
I tried to use boundary() function and for each index provided by the function, to get to the right most point. It works if the start index of the boundary function is convinient.
Alternate logic without the use of boundary function is-
To consider each Y coordinate ( for example for i=0:0.1:1) in a 'for' loop and in that take the point with max X coordinate. and collect the X and Y coordinates in a new array. But I cant understand how to put that into a code.
I'm new to Matlab and any help or new logic will be really appreciated.

Réponse acceptée

darova
darova le 14 Juin 2019
What if just find() indices where x > 0.95?
  2 commentaires
Ganesh Nayak
Ganesh Nayak le 27 Juin 2019
Hello Darova,
It was a bit complicated, but finally figured out a way to do it. And the find() function helped me to complete the code with a little research.
Thank you for your reply.
darova
darova le 27 Juin 2019
mai plesur

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Scatter Plots dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by