Hello.
I'm trying to make a simple for-loop plot, but I can't get the line to show! Where did it go? I even specified it as dashed blue line.
x=[0:0.1:3*pi];y=sin(x);for i=0:0.5:3*pi if sin(i) > 0 plot(i,1,'--bx') elseif sin(i) < 0 plot(i,-1,'--bx') else endendplot(x,y);
Best Answer