Write a user-defined MATLAB function that determines the vector connecting two points (A and B). For the function name and arguments use V=vector (A, B). The input arguments to the function are vectors A and B, each with the Cartesian coordinates of points A and B. The output V is the vector from point A to point B. If points A and B have two coordinates each (they are in the x y plane), then V is a two-element vector. If points A and B have three coordinates each (general points in space), then V is a three-element vector. Use the function vector for determining the following vectors.
(a) The vector from point (0.5, 1.8) to point (–3, 16).
(b) The vector from point (–8.4, 3.5, –2.2) to point (5, –4.6, 15).
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.