Area of polygon for arrays in cell ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
SUSHMA MB
am 7 Jan. 2016
Kommentiert: SUSHMA MB
am 7 Jan. 2016
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 Kommentare
Akzeptierte Antwort
Stalin Samuel
am 7 Jan. 2016
load polyre
for n = 1:length(polyre)
data= polyre{1,n};
Area(n) = polyarea(data(:,1),data(:,2));
end
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Elementary Polygons finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!