I want to make a plot such that for all y values greater than some y0, 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
plot(x,y,{y>y0,'-r'}).