Determining point is within polygon or outside.
古いコメントを表示
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
2018 年 7 月 25 日
編集済み: Walter Roberson
2018 年 7 月 25 日
Also see
In this updated code, what is 'in' and 'on'? Or is that where you're stuck? If that's where you're stuck, how does this question differ from the previous one?
Ramesh Bala
2018 年 7 月 25 日
Ramesh Bala
2018 年 7 月 25 日
Adam Danz
2018 年 7 月 25 日
When I run the code you shared, 'in' is not defined anywhere. 'in' has no values. So the code breaks when it tries to execute 'in'.
Ramesh Bala
2018 年 7 月 25 日
Adam Danz
2018 年 7 月 25 日
'in' and 'on' have no values. If you run the code you provided, it will break when it tries to execute 'in'. I don't know what 'in' and 'on' represent or what their values 'should' be. I'm guessing they are indices and their values are probably [0 1] or [1 0].
If you have a more clearer or specific question maybe I can help. But the biggest problem in your current code is that 'in' and 'on' have no values.
Ramesh Bala
2018 年 7 月 25 日
Adam Danz
2018 年 7 月 25 日
Kaleesh,m see your other thread where I answered this question. inpolygon() does work well with your code.
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Elementary Polygons についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!