I need to find area of a polygon without using built in functions

조회 수: 2 (최근 30일)
Sutton Yanosky
Sutton Yanosky 2013년 12월 4일
편집: Roger Stafford 2013년 12월 4일
I need to create a code that will allow me to find the area of a polygon given any set of coordinates . We are supposed to start with one point and work around the polygon basically forming triangles with the starting point and somehow adding them together to finally form the total area of the polygon. I am not allowed to use any built in functions. My hint was that I would need to use cosine rule in my code. I cannot figure out how to do this and need help badly.
  댓글 수: 1
Roger Stafford
Roger Stafford 2013년 12월 4일
편집: Roger Stafford 2013년 12월 4일
I showed you how to do this in your earlier request at #108495. It forms triangles with the origin rather than at your starting point, but it wlll still give you the correct area.

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

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