To plot the position and velocity of the mechanism you need to have their data. Assuming you have two vectors of data, time
and position
for position and velocity
for velocity, you can use the following code to plot them.
main.m381 chars20 lines
This code generates a figure with two subplots: one for position vs time and the other for velocity vs time. You can customize the plot by changing the labels, titles, and formatting of the plot.
gistlibby LogSnag