Determining point is within polygon or outside.

조회 수: 1 (최근 30일)
Ramesh Bala
Ramesh Bala 2018년 7월 25일
댓글: Adam Danz 2018년 7월 25일
so far I have coded a profile and a user input to plot the points if inside or outside. any improvement to the code is appreciable
  댓글 수: 9
Ramesh Bala
Ramesh Bala 2018년 7월 25일
Thanks für the reply. I actually tried using inpolygon for the code ,it didn't worked well as I'm selecting only 2 coords as user input .I think it works with random points. So here im trying to print a statement saying ginputs are within profile or outside profile using inpolygon Function. Actually the present code shows the points in and out in colours. I need to attach a print statement to it .
Adam Danz
Adam Danz 2018년 7월 25일
Kaleesh,m see your other thread where I answered this question. inpolygon() does work well with your code.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Elementary Polygons에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by