Find coordinates of the point in inpolygon.
3 次查看(过去 30 天)
显示 更早的评论
How can i find the coordinates of the points obtained using inpolygon function. For ex:
L = linspace(0,2.*pi,6);
xv = cos(L)';
v = sin(L)';
rng default
xq = randn(250,1);
yq = randn(250,1);
[in,on] = inpolygon(xq,yq,xv,yv);
I n the above example the values in [in, on] are retured as 1 or 0. How can i find the coordinates of the points that are inside the polygon?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Cartesian Coordinate System Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!