Plot a line graph from 3 variables in Matlab
<p>I have three variables: <code>px</code>, <code>py</code> and <code>t</code>, which indicate the x coordinate, y coordinate and time respectively. </p>

<p>I need to have a 2D line graph in order to visualize the evolution of the position over time. I don't need to plot the exact position, nor know where the object goes. I just to visualize the trajectory and speed of changing in the position of the object. For example, if between t1 and t2 the object stays still, the line would be completely horizontal. If then it moves slightly, the line would go up a little bit, and if then it moves drastically, the line's slope would go up a lot as well.</p>

<p>In other words, I need a way to join both position coordinates into one single variable to plot over time, but without losing the meaningful information they give me.</p>

<p>I've tried to plot the information in 3D with <code>plot3</code>, but its visualization is just not clear enough, so I decided to change my approach and try to only visualize the speed at which the object's trajectory is changing.</p>