Area of multiple polygons

조회 수: 2 (최근 30일)
SUSHMA MB
SUSHMA MB 2015년 4월 10일
댓글: SUSHMA MB 2015년 4월 13일
I have a cell which contains coordinates of different polygon,
eg: if 'A' is a cell which have coordinates of 26 polygon, so its size is 1x26.
Now i want to obtain the area of each individual polygon in the cell. How i can get that? I dont want the sum of area of all polygons, but want the area of individual polygons.
  댓글 수: 3
SUSHMA MB
SUSHMA MB 2015년 4월 11일
I am attaching the file which has the coordinates with in it. How can i get the area of each individual?
SUSHMA MB
SUSHMA MB 2015년 4월 13일
Can anyone please answer this question.

댓글을 달려면 로그인하십시오.

채택된 답변

Stalin Samuel
Stalin Samuel 2015년 4월 13일
편집: Stalin Samuel 2015년 4월 13일
for i1=1:26
data =mycoordinates{i1}%coordinate of i1th polygon
data(end+1,:) =data(1,:)
for i=1:max(size(data))-1
s(i)=data(i,1) *data(i+1,2)-data(i,2)*data(i+1,1)
end
area(i1) = abs(sum(s)/2)
end
  댓글 수: 1
SUSHMA MB
SUSHMA MB 2015년 4월 13일
Is it for area of each individual polygon?

댓글을 달려면 로그인하십시오.

추가 답변 (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