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 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
Get step-by-step solutions from verified subject matter experts
