Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
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

Risposte (4)

Walter Roberson
Walter Roberson il 3 Feb 2012

the cyclist
the cyclist il 31 Gen 2012
There is a MATLAB function designed to do just that: inpolygon().

zawaiter
zawaiter il 2 Feb 2012
thank you the cyclist i was hoping for 3d version.

zawaiter
zawaiter il 3 Feb 2012
THANKS WALTER THAT WAS REALLY GREAT HELP

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by