I am using plotyy to plot some data. The problem is that when I plot more thant 2 sets of data in one of the y axis, it appears straight lines linking the end point of the ploted data to the origin of the axis. Here is a minimal code that produces the same result.
figurex=0:0.1:10;y1=-x;y2=5*x.^2/1000;y3=1.2*x.^2/1000;[ax,p1,p2] = plotyy(x,y1,[x,x],[y2,y3],'plot','plot');
Any ideas on how to solve this? Thank you in advance.