use vertices to create a 3d array with values =1 inside and nan outside the vertices boundaries
Mostrar comentarios más antiguos
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
Respuestas (4)
the cyclist
el 31 de En. de 2012
0 votos
There is a MATLAB function designed to do just that: inpolygon().
zawaiter
el 2 de Feb. de 2012
0 votos
zawaiter
el 3 de Feb. de 2012
0 votos
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!