title: Matlab ploting an arrow between two points (not just a line)
body: <p>Following up on this lovely answer <a href="https://stackoverflow.com/a/45442483/2798895">https://stackoverflow.com/a/45442483/2798895</a> how to draw a line between two sets of points I need to have an arrow (<code>---&gt;</code>) between the corresponding points. Is there a way of doint it?</p>
  
  <p>I found some examples of using <a href="https://de.mathworks.com/help/matlab/ref/quiver.html" rel="nofollow noreferrer">quiver</a> but they don't connect from (x,y) to (u,v). They are adding only a short arrow to (x,y) that is pointing in the direction of (u,v) but not touching it.</p>
  
  <p>My line plot (from the above mentioned answer):</p>
  
  <pre><code>set1 = [1,2; 3,4; 5,6];
  set2 = [10,20; 30,40; 50,60];
  figure; 
  plot(set1(:,1),set1(:,2),'b+',set2(:,1),set2(:,2),'g+')
  hold on
  x = [set1(:,1) set2(:,1)].';
  y = [set1(:,2) set2(:,2)].';
  plot(x,y,'r')
  hold off
  drawnow 
  </code></pre>
  
  <p>My quiver plot:</p>
  
  <pre><code>set1 = [1,2; 3,4; 5,6];
  set2 = [10,20; 30,40; 50,60];
  figure; 
  plot(set1(:,1),set1(:,2),'b+',set2(:,1),set2(:,2),'g+')
  hold on
  quiver(set1(:,1),set1(:,2),set2(:,1),set2(:,2));
  hold off
  drawnow 
  </code></pre>
  
  <p>How would that be possible to connect the points with an arrow e.g. like <code>quiver</code> but with longer arrows?</p>