Attribute number to closed area
显示 更早的评论
Hi,
I'm trying to calculate stable region automatically by Matlab. As shown in picture, Boundries are driven (as 2 vector of x,y) and split the plate into several closed areas.
Every closed area has a specific number and Somehow these numbers are related to each other.
I have to :
- Define very closed area
- Attribute an number (for example 2) for each Area

at last The area with least number is The stable region.
I have coordinates of intersections (Red Points), I was thinking about using these points and "inpolygon" command to find a point within The area and attribute the number to that point instead of whole surface. But Vertex Points are not connected Respectively (e.g 3th, 4th and 8th are making an area) and that does not work for me.
Could you please help me out of this ?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Polygonal Shapes 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


