Selecting data points from a plot

조회 수: 2 (최근 30일)
Rachel Falls
Rachel Falls 2022년 5월 18일
댓글: Star Strider 2022년 5월 19일
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
KSSV
KSSV 2022년 5월 19일
How you have the data points? Are they scattered points? Attach your data.
Star Strider
Star Strider 2022년 5월 19일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

KSSV
KSSV 2022년 5월 19일
A rough idea would be to use boundary.

카테고리

Help CenterFile Exchange에서 Graphics Objects에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by