Hi, I want to draw a discontinuous line that will later be used in a another plot. For my example I have written following lines
y1 = [0.6 0.6];
x1 = [0.7 1.3];
line(x1,y1); hold on
line(x2,y2); hold off
This is fine for 2 lines but I have more. Can this be written differently? Say for example for 10 discontinuous lines?