MATLAB has a dynamic plotting library called comet which is used to trace trajectories using an animated graph in which a circle (the comet head) traces the data points on the screen. The comet body ...