Selecting data points from a plot

1 Ansicht (letzte 30 Tage)
Rachel Falls
Rachel Falls am 18 Mai 2022
Kommentiert: Star Strider am 19 Mai 2022
I have a TON of longitude and latitude data points that I used to create this figure of some lakes I am helping research. I would like to isolate the points shown while keeping only the outline of the lake. I want to show flowrates and things from each point, which will make it very messy if I include every single coordinate. I also want the user to be able to tell where in the channel we are looking, hence the need for the outline. Is there an easy way I can do this? I know I could just manually click every point and export them to my workspace but that seems awful.
  2 Kommentare
KSSV
KSSV am 19 Mai 2022
How you have the data points? Are they scattered points? Attach your data.
Star Strider
Star Strider am 19 Mai 2022
I thought about using boundary with a shrink factor of 1 (the highest possible value), however when I simulated it, that didn’t give the the result I was hoping for.
One option would be to use islocalmax and islocalmin on appropriate parts of the lake shore (I assume the blue dots define the lake and the white areas are land), although that might require manually selecting the (x,y) regions first for at least some of them.
I’m not posting this as an Answer because it isn’t one. However if an extension of it (with your data to test it with) helps to solve your problem, I’ll post the updated version as an Answer.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

KSSV
KSSV am 19 Mai 2022
A rough idea would be to use boundary.

Kategorien

Mehr zu Graphics Objects finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by