MATLAB: How can i dont make the curve return back to zero

graphMATLABplot

my graph return back to zero i dont know why???

Best Answer

Let x,y be your data.
[x,idx] = sort(x) ;
y = y(idx) ;
plot(x,y)