Vectors with three elements can represent position, velocity, and acceleration. A mass of 5 kg, which is 3 m away from the x axis, starts at x = 2 m and moves with a speed of 10 m/s parallel to the y axis. Its velocity is thus described by v = [0, 10, 0], and its position is described by r = [2, 10t + 3, 0]. Its angular momentum vector L is found from L = m(r × v), where m is the mass. Use MATLAB to
a. Compute a matrix P whose 11 rows are the values of the position vector r evaluated at the times t = 0, 0.5, 1, 1.5, . . . , 5 s.
b. What is the location of the mass when t = 5 s?
c. Compute the angular momentum vector L. What is its direction?