use vertices to create a 3d array with values =1 inside and nan outside the vertices boundaries

조회 수: 1 (최근 30일)
hi,I wish you can help me i got the vertices of a figure (3*m array)for x,y and z.i would like to use this information to create another array size(m,n,o) with values inside the vertics boundaries =1 and outside the vertics area=0 or NaN.thanks

답변 (4개)

Walter Roberson
Walter Roberson 2012년 2월 3일

the cyclist
the cyclist 2012년 1월 31일
There is a MATLAB function designed to do just that: inpolygon().

zawaiter
zawaiter 2012년 2월 2일
thank you the cyclist i was hoping for 3d version.

zawaiter
zawaiter 2012년 2월 3일
THANKS WALTER THAT WAS REALLY GREAT HELP

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by