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!