solving ode without using ode solver
solving ode without using ode solver
(OP)
is there any way to solve a second degree ordinary differential equation using matlab without using built-in ode solver such as ode45,ode23,rk4 etc?
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting GuidelinesJobs |
solving ode without using ode solver
|
RE: solving ode without using ode solver
RE: solving ode without using ode solver
RE: solving ode without using ode solver
You can write you own method that does not replace all of the very difficult MATLAB functionality if you only want to test accuracy. Go ahead an write you own integrator and set the step size low and look for convergenceon a particular problem. Then check the MATLAB ones.
RE: solving ode without using ode solver
There are many many numerical methods you can program (although I agree you will have to do a lot of work to get nearly as accurate/efficient as ode45b). The simplest (but not most accurate) is to set up the problem the same as you would for ode45: dx/xt = f(x,t) where x is a state vector. Then start with an initial condition x0. Then time step
x1 = x0 + delta-t * f(x0,t0)
x2 = x1 + delta-t * f(x1,t1)
etc
=====================================
Eng-tips forums: The best place on the web for engineering discussions.