title: Plot vertical lines at a certain time
body: <p>I want to plot a line at a certain "x" (being a scalar) value so every second, a vertical line with certain values will be drawn. I know that one way to plot a vertical line (without considering time) is to declare a vector like:</p>
  
  <pre><code>y=0:0.01:5;
  </code></pre>
  
  <p>or something like:</p>
  
  <pre><code>y=3:0.01:6;
  </code></pre>
  
  <p>and write <code>plot(x,y);</code></p>
  
  <p>Also, I've done "animated" plots using the "pause" parameter but I don't know how to do that in this case. Thanks for your help.</p>