Area of polygon for arrays in cell ?

조회 수: 1 (최근 30일)
SUSHMA MB
SUSHMA MB 2016년 1월 7일
댓글: SUSHMA MB 2016년 1월 7일
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.

채택된 답변

Stalin Samuel
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 CenterFile Exchange에서 Elementary Polygons에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by