title: Connect discrete points together in a plot using Matlab?
body: <p>If I have the following figure :</p>
  
  <p><img src="https://i.stack.imgur.com/ROUN6.png" alt="enter image description here"></p>
  
  <p>created by the code :</p>
  
  <pre><code>for t=1:length(s)  % s is a struct with over 1000 entries
      plot(t,r1,'k'); % r1 = (0,100,150,170) + 1050
      plot(t,r2,'g'); % r2 = (0,300,350,370) + 1050
      plot(t,r3,'b'); % r3 = (0,200,250,270) + 1050
      plot(t,r4,'m'); % r4 = (0,1000,1250,1500) + 1050
      plot(t,max,'r'); % max = 2000
  end
  </code></pre>
  
  <p>Each dot is actually propagating from 1050 to their current value. But you can't see it this way and hence why I would like for a line to be drawn to connect them all.</p>
  
  <p>How can I connect discrete points of the same line together ?</p>