For Programmers: Free Programming Magazines  


Home > Archive > Matlab > December 2005 > Solving an ODE backwards in time









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Solving an ODE backwards in time
Svein Hovland

2005-12-16, 7:10 pm

Can I solve an ODE backwards in time using built-in matlab functions
such as ode or DDE23? I.e., given a final condition x(T), can I solve
the "terminal value problem"?
Nasser Abbasi

2005-12-17, 3:59 am


"Svein Hovland" <sveinhov@itk.ntnu.no> wrote in message
news:ef1fd44.-1@webx.raydaftYaTP...
> Can I solve an ODE backwards in time using built-in matlab functions
> such as ode or DDE23? I.e., given a final condition x(T), can I solve
> the "terminal value problem"?


I think you should just be able to write your time duration as

t=[0 -10]

This will be the time duration argument to something like ODE45. You will
still use the initial condition as before.

(Here I assumed you want to integrate for 10 seconds backwards).

Nasser


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com