Borrar filtros
Borrar filtros

Area of multiple polygons

3 visualizaciones (últimos 30 días)
SUSHMA MB
SUSHMA MB el 10 de Abr. de 2015
Comentada: SUSHMA MB el 13 de Abr. de 2015
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 comentarios
SUSHMA MB
SUSHMA MB el 11 de Abr. de 2015
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 el 13 de Abr. de 2015
Can anyone please answer this question.

Iniciar sesión para comentar.

Respuesta aceptada

Stalin Samuel
Stalin Samuel el 13 de Abr. de 2015
Editada: Stalin Samuel el 13 de Abr. de 2015
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 comentario
SUSHMA MB
SUSHMA MB el 13 de Abr. de 2015
Is it for area of each individual polygon?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Elementary Polygons en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by