image thumbnail
from Numerical methods vs analytical methods for Differential equations by Praveen Ranganath
This code compares the analytical solution with the numerical solutions of a simple first order ODE

f1(a,b)
% This the function used to keep dy/dx = f(x,y)


function y = f1(a,b)
        y = a*sqrt(b);
end

Contact us