Question: My Solutions Function This is a Function Exercise: For the triangle shown below, which has side lengths a, b and c and interior angle 0



My Solutions Function This is a Function Exercise: For the triangle shown below, which has side lengths a, b and c and interior angle 0 between the sides with lengths a and b, the cosine law says: c (1 c? = a + 62 2ab cos 0 Write a MATLAB function called angles that takes the lengths of three sides of a triangle as arguments and returns the three interior angles of the triangle. For example; >>angles (1, 2, 3) should return (approximately) 30, 60 and 90 degree. Note: The outputs should be in degrees. The order of the outputs does not matter. Function Save C Reset DI MATLAB Documentation 1 function [ a, b, bta] = trig(c, alf) Code to call your function C Reset 1 [alfa, beta, theta)=angle(1,2,sqrt(3))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
