Question: 12. Write a user-defined MATLAB function that determines the angle that forms by the intersection of two lines. For the function name and arguments, use

12. Write a user-defined MATLAB function that determines the angle that forms by the intersection of two lines. For the function name and arguments, use th=anglines(A,B,C). The input arguments to the function are vectors with the coordinates of the points A, B, and C, as shown in the figure, which can be two- or three-dimensional. The output th is the angle in degrees. Use the function anglines for determining the angle for the following cases:

(a) A(–5, –1, 6), B(2.5, 1.5, –3.5), C(–2.3, 8, 1)

(b) A(–5.5, 0), B(3.5, –6.5), C(0, 7)

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 Systems Analysis And Design Using MATLAB Questions!