![]() ![]() ![]() Define an ODE in a symbolic form using symbolic functions.This article demonstrates the following workflow of transforming a symbolic representation of an ODE to a form accepted by the MATLAB numeric ODE solver ode45. Numeric solvers usually require them to be transformed to a coupled first-order system. Symbolic solvers require a scalar symbolic (= "textbook-like") representation of an ODE. But numeric solvers require a particular form and type of arguments, which often differ from the arguments of a symbolic solver. ![]() Since we cannot solve the ODE symbolically, we must switch to a numeric ODE solver. But we find that the symbolic ODE solver cannot find a closed form solution (something which is likely to happen, because only particular classes of ODEs can be solved in closed symbolic form). In this article, we consider a slightly different scenario. Convert the symbolic solution to a MATLAB function handle using matlabFunction.Compute a symbolic solution of an ordinary differential equation (ODE) using dsolve. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |