You are on page 1of 1

f=inline('(X.

^2)/(2*Y)');
x1=0;y1=1.2;xn=0.4;h=0.4;
x=(x1:h:xn);
[x,y]=ode23(f,x,y1);
plot(x,y);
grid;

You might also like