function % Insert here your file name after function (Use Alphanumberic names only) clear, clc, format short g, format compact tspan= % Replace this line with tspan line from Polymath report y0= % Replace this line with y0 line from Polymath report disp(' Variable values at the initial point '); disp([' t = ' num2str(tspan(1))]); disp(' y dy/dt '); disp([y0 ODEfun(tspan(1),y0)]); [t,y]=ode45(@ODEfun,tspan,y0); for i=1:size(y,2) disp([' Solution for dependent variable y' int2str(i)]); disp([' t y' int2str(i)]); disp([t y(:,i)]); plot(t,y(:,i)); title([' Plot of dependent variable y' int2str(i)]); xlabel(' Independent variable (t)'); ylabel([' Dependent variable y' int2str(i)]); pause end %- - - - - - - - - - - - - - - - - - - - - - % Replace this and the following line with the function copied from the Polymath report % Do not include the tspan and y0 lines