TFin = isinterior(polyin,x,y)
returns a logical vector whose elements are 1 (true) when the
corresponding x-coordinates and y-coordinates
in the vectors x and y are in a
polyshape. A point is in a polyshape if it
is either in a solid region or on one of the boundaries.
TFin = isinterior(polyin,P)
represents the query points in a 2-column matrix P. The first
column of P contains the x-coordinates of the
query points, and the second column contains the corresponding
y-coordinates.
[TFin,TFon] = isinterior(___)
returns an additional logical vector for either of the previous syntaxes. The
elements of TFon are 1 when the corresponding query points are on
a boundary of polyin.
x-coordinates of query points, specified as a scalar or
vector.
Data Types: double | single
y-coordinates of query points, specified as a scalar or
vector.
Data Types: double | single
2-D vertices, specified as a 2-column matrix. The first column of
P contains the x-coordinates of
the query points, and the second column contains the
y-coordinates.
Interior point indicator, returned as a scalar or vector. An element of
TFin is 1 when the corresponding query point is
either in a solid region of the input polyshape or on a
boundary.
Data Types: logical
Boundary point indicator, returned as a scalar or vector. An element of
TFon is 1 when the corresponding query point is
strictly on a boundary of the polyshape.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.