Function that tell me if a point is inside a volume.

12 ビュー (過去 30 日間)
matteo scarpelli
matteo scarpelli 2017 年 10 月 28 日
回答済み: Matt J 2017 年 10 月 28 日
Hi everyone, I need help. I need to know if there is a function that tell me if a point with coordinates x-y-z is inside a volume defined by eight point(it's a parallelepiped). i'm new in matlab so i don't know all the function. Thanks in advance for helping me.
  1 件のコメント
matteo scarpelli
matteo scarpelli 2017 年 10 月 28 日
編集済み: matteo scarpelli 2017 年 10 月 28 日
i used the function boundary and then the function ismember, but i didn't obtain what i want. for example: I have the matrix P that have the coordinate of the eight point that built the volume P =[1 1 1; 1 10 1; 10 1 1; 10 10 1; 1 1 2; 1 10 2; 10 1 2; 10 10 2]; i need to know , for example, if the point x=[2,2,1.5] is inside the volume of P. Thanks again guys

サインインしてコメントする。

採用された回答

Matt J
Matt J 2017 年 10 月 28 日
You can use INHULL.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by