Can someone write a script for this problem?
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
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
Réponses (2)
Image Analyst
le 4 Fév 2022
0 votes
You say "I am having a hard time writing a script."
These links may help you advance your skills:
KSSV
le 4 Fév 2022
0 votes
- 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,
Cette question est clôturée.
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!