Write a user-defined MATLAB function that determines the angle that forms by the intersection of two lines.

Question:

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 x 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)
Z4 B.
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: