You are on page 1of 1

f=inline('X+Y*Z');

x1=0;y1=1;z1=0.5;xn=1.2;h=0.1;
x=(x1:h:xn);
[x,y,z]=ode113(f,x,y1,z1);
fprintf('\n Value of yg=%f',y);

You might also like