Here's my problem: After given vertices of a n-sided polygon(x,y), I need to use Heron's formula to find the area of the n-2 triangles it creates. My problem is I cannot figure out how to say I want to pick out triangles 123 134 145 and so on. I need to make a function for Heron's formula and while I know how to find the distances from the lines, I cannot figure out how to specify which points to use. Any help would be appreciated.

답변 (1개)

bym
bym 2011년 2월 26일

0 개 추천

How about:
combnk(1:5,3)

댓글 수: 1

Lukas Setiawan
Lukas Setiawan 2017년 6월 1일
Here the solution with gui where the heron's function write by Marco zuliani bitbucket.org/nixz97/nix/downloads/

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

질문:

2011년 2월 26일

댓글:

2017년 6월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by