Question: Write a MATLAB function called classifyTriangle that takes three side lengths , c ) of a triangle as input and classifies the triangle based on
Write a MATLAB function called classifyTriangle that takes three side lengths
c of a triangle as input and classifies the triangle based on these side lengths. The
function should return a classification string:
"Equilateral" if all three sides are equal
"Isosceles" if exactly two sides are equal eg or
"Scalene" if all three sides are different
Then write a MATLAB code that takes the tree slide lengths from the user and uses
the function to classify the triangles.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
