Question: ENGR 2050 In-Class Exercise 8 Write a MATLAB function called RfTriangle that takes as inputs the lengths a and b of the two perpendicular sides

 ENGR 2050 In-Class Exercise 8 Write a MATLAB function called RfTriangle

ENGR 2050 In-Class Exercise 8 Write a MATLAB function called RfTriangle that takes as inputs the lengths a and b of the two perpendicular sides of a right triangle and outputs the hypotenuse and the area of the triangle. Execute your function at the command window assigning the outpats to variables Hyp and Area. Check: for sides 3 and 4 , the hypotenuse is 5 and the area is 6 square units

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!