title: MATLAB: Plotting different numerical approximation in one plot
body: <p>I have the following matlab code for approximating a differential equation via the Euler-method:</p>
  
  <pre><code>% Eulermethod
  
  a=0;
  b=0.6;
  Steps=6;
  dt=(b-a)/Steps;
  x=zeros(Steps+1,1);
  
  x(1,1)=1;
  y=zeros(Steps+1,1);
  
  for i=1:Steps
      x(i+1,1)=x(i,1)+dt*(x(i,1)*x(i,1)+1);
  end
  plot(x)
  </code></pre>
  
  <p>I want to be able to plot the solution plot for several different values of Steps in one plot and have the x-axis go from 0 to 0.6 instead of from for example 1 to 100 000 etc. Can this be done?</p>