Question: MATLAB help Use a single M-file for this problem and use mnemonic variable names of 3 characters or more to solve the parts of the
MATLAB help
Use a single M-file for this problem and use mnemonic variable names of 3 characters or more to solve the parts of the problem. Remember Matlab must do all the work. Even to check the answer in part C, Matlab must do the work. As an addition to the book instructions include a "disp" statement that states the equation for the law of cosines and a "disp" statement that states the equation for the law of sines. Recall that 2 product radians = 360 degrees. (use the following filename system: lastname_degrees_firstinitial.m) In the triangle shown a = 21 cm, b = 45 cm, and c = 60 cm. Define a, b, and c as variables, and then: a) Calculate the angle gamma (in degrees) by substituting the variables in the Law of Cosines. (The Law of Cosines: c^2 = a^2 + b^2 - 2abcos gamma) b) Calculate the angles alpha and beta (in degrees) using the Law of Sines. c) Check that the sum of the angles is 180 degree
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
