Area of polygon for arrays in cell ?
1 次查看(过去 30 天)
显示 更早的评论
I have a variable named polygon with cell size 1X15 cell. Each cell contains the coordinates of a polygon, in this manner i have 15 different polygon values. Now i need to find the area of each polygon. However i have tried 'polyarea', but couldn't obtain the result. Kindly help me in this query. The polygon values are attached with this query, for better understanding. Thank you in advance.
0 个评论
采纳的回答
Stalin Samuel
2016-1-7
load polyre
for n = 1:length(polyre)
data= polyre{1,n};
Area(n) = polyarea(data(:,1),data(:,2));
end
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Elementary Polygons 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!