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
0 件のコメント
回答 (2 件)
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:
0 件のコメント
KSSV
2022 年 2 月 4 日
0 投票
- To request the input, use function input. Read about it.
- To calculate the distance you need to use Euclidean distance formula.
- After fidning distance/ lenght of each side, you can get perimeter easily.
- Area you have Heron's formula.
- To find the angles read about atan.
It is your Home Work you have to do,
0 件のコメント
この質問は閉じられています。
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!