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!