How to fill a 3D logical matrix by a series of point coordinates?

조회 수: 2 (최근 30일)
Mohammad
Mohammad 2019년 5월 27일
댓글: Mohammad 2019년 5월 27일
I am trying to develop an algorithm inwhich I need to demonstrate a 3D area by a logical matrix (1 inside a surface, 0 outside). I have a surface shown as a series of points which are floating point coordinates. How can I fill in a shape inside a logical 3D matrix annotated by this surface?

답변 (1개)

KSSV
KSSV 2019년 5월 27일
Multiple ways:
  1. Use inpolygon, get indices, fill the logicals.
  2. Use ineqalities and get logicals straight away.
  댓글 수: 2
Mohammad
Mohammad 2019년 5월 27일
편집: Mohammad 2019년 5월 27일
can you elucidate your answer by a few lines of code?
Mohammad
Mohammad 2019년 5월 27일
I have a 3d array of floating positions. How can I fill by logical operations while positions are not inside a single layer?!

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

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by