Can someone write a script for this problem?

Write a script that requests for the coordinates of a triangles vertices and returns the following properties: a. Perimeter b. Area c. The length of the sides(a,b,c) and its opposite angle(A,B,C) in degrees

回答 (2 件)

Image Analyst
Image Analyst 2022 年 2 月 4 日

0 投票

You say "I am having a hard time writing a script."
These links may help you advance your skills:
KSSV
KSSV 2022 年 2 月 4 日

0 投票

  1. To request the input, use function input. Read about it.
  2. To calculate the distance you need to use Euclidean distance formula.
  3. After fidning distance/ lenght of each side, you can get perimeter easily.
  4. Area you have Heron's formula.
  5. To find the angles read about atan.
It is your Home Work you have to do,

この質問は閉じられています。

製品

質問済み:

2022 年 2 月 4 日

閉鎖済み:

2022 年 2 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by