Question: Matlab help pls Write a user-defined MATLAB function that determines the unit vector in the direction of the line that connects two points (A and

 Matlab help pls Write a user-defined MATLAB function that determines the

Matlab help pls

Write a user-defined MATLAB function that determines the unit vector in the direction of the line that connects two points (A and B). For the function name and arguments, use n-unitvec(A,B). The input to the function are two vectors A and B, each with the Cartesian coordinates of the corresponding point. The output is a vector with the components of the unit vector in the direction from A to B. Use the 'unitvec function as a sub or nested function for the primary function 'analines function which determines the angle that forms by the intersection of two lines. For the function name and arguments, use th-analines(A,B,C). The input arguments to the function are vectors with the coordinates of the points A, B, and C, as shovwn in the figure. Determine the angle for the following case: A-5 1. 6), B(3.5, -6.5), C(-2.3, 8, 1). Include H1 and help text lines for each function such that user can search for the command and/or synta without opening the file

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 Databases Questions!