MATLAB: Plot a line between two points with given angle which points its direction.

angle vector

I need your guidance that how I can compute angle between two points and draw a direction vector to get the direction of these two colored lines(Pink,Blue) at each instant of time.
Secondly is it possible that I can extract the speed as I am given (x,Y) position and time (as can be seen from the figure which is plotted on X,Y plane in a given time)?
Thanks in advance for your kind reply.

Best Answer