Question: Complete the script to define the following two anonymous functions 1. Create an anonymous function called Third Side, which accepts, in order, the lengths of
Complete the script to define the following two anonymous functions 1. Create an anonymous function called Third Side, which accepts, in order, the lengths of sides a and b and angle C and uses the 2 Create an anonymous function called TriangleArea, which accepts, in order, the lengths of sides a and b and angle C, and 3 Use ThirdSide to compute the length of side c and TriangleArea to find the area for a triangle with a 5, b 8, and C 50 Law of Cosines to compute the length of side c Recall the Law of Cosines states+b-2ab(cos(C) computes the area of the triangle Recall the area of a triangle can be calculated with area - absin(C) degrees. Assign the results to the variables SideC and AreaABC respectively Your Script Save C Reset MATLAB Documentation 21% Enter the commands for the two anonymous functions ThirdSide and TraingleArea here. 41% Note the test suite will call the two anonymous functions 51% Be sure to use the exact function handle names specified in the problem statement. 8 SideC ThirdSide (5,8,50) 9 AreaABC TriangleArea(5,8,50)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
