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

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.

Z4 B.

Step by Step Solution

3.23 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Script file clear clc dispPart a A5 1 6 B25 15 35 C23 8 1 th anglinesABC fprintfThe an... View full answer

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

Document Format (1 attachment)

Word file Icon

652-B-F-F-M (731).docx

120 KBs Word File

Students Have Also Explored These Related Finance Questions!