필터 지우기
필터 지우기

Need to find out Area of polygon

조회 수: 3 (최근 30일)
Shweta Saboo
Shweta Saboo 2019년 9월 9일
답변: Walter Roberson 2019년 9월 9일
I want to calculate area of Polygon having dimensions [102.49728 126.58069 127.49728 126.58069 127.49728 163.58069 102.49728 163.58069].

채택된 답변

Walter Roberson
Walter Roberson 2019년 9월 9일
However, you do not appear to have X Y coordinates. If what you have is a polyhedra that is 102.49728 in one direction, 126.68069 in a second direction, 127.49728 in a third direction, and so on, then prod() the array.
However I am guessing you want
p = [102.49728 126.58069 127.49728 126.58069 127.49728 163.58069 102.49728 163.58069];
xy = reshape(p, 2, []).';
and then you could polyarea() on xy(:,1) and xy(:,2)

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