title: Make plot with varied line color for specific y values on MATLAB
body: <p>I want to make a plot such that for all <code>y</code> values greater than some <code>y0</code>, the plot will be shown in red. For all other values, it will be shown in blue. Is this possible in MATLAB? This would help draw distinct parts of a plot in different colors/settings for different conditions. I'm looking for something like </p>
  
  <p><code>plot(x,y,{y&gt;y0,'-r'})</code>.</p>