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

zawaiter asked on 31 Jan 2012
Latest activity: Answer by zawaiter on 3 Feb 2012

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

0 comments

Tags

Products

    4 answers

    Walter Roberson answered on 3 Feb 2012

    0 comments

    the cyclist answered on 31 Jan 2012

    There is a MATLAB function designed to do just that: inpolygon().

    0 comments

    zawaiter answered on 2 Feb 2012

    thank you the cyclist i was hoping for 3d version.

    0 comments

    zawaiter answered on 3 Feb 2012

    THANKS WALTER THAT WAS REALLY GREAT HELP

    0 comments

    Contact us at files@mathworks.com