polybool Command Incorrectly Gives Workspace Variables
이전 댓글 표시
Hello,
I have a series of polygons which overlap and the combined polygons have some holes. I want to calculate the entire area of all the polygons and ignore the holes. I combine the polygons with the polybool command and the union setting and then want to use polyarea to find the area. When I use polyarea, the result is NaN and when I started to trace the problem, I noticed that the arrays which polybool give have a max and min value in the Workspace of NaN. However, if you look at the arrays, there are no NaN's. Has anyone run into this issue? It seems as if I can't use polyarea due to these "ghost" NaN's. If you can think of a better way to find the union area please let me know.
Thanks for any help or suggestions,
Patrick
댓글 수: 3
Patrick Comiskey
2017년 2월 6일
Walter Roberson
2017년 2월 6일
Would you be able to post some data, perhaps a .m and a .mat, to reproduce the problem? Also, which MATLAB version are you using?
Patrick Comiskey
2017년 2월 6일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!