MATLAB: How to draw hysteresis loop using matlab

loopplotting

I have velocity ,v, and discharge, q, vectors . I want to draw hysteresis plot between the two. I used plot_dir function but it can't allow me to have the plot with good view and resolution. Is there any way of plotting it?
I used this function but failed
plot_dir(v,q)
Thanks for your help.
Any function that give that shows the beginning and end of successive points with arrow is acceptable. Thanks again.

Best Answer

x = rand(10,1);
y = rand(10,1);
quiver(x(1:end-1),y(1:end-1),diff(x),diff(y),0);
Please accept an answer if it helps you.