Thread Subject: Solving ODE with final condition

Subject: Solving ODE with final condition

From: Jamin / Ilwon

Date: 4 Nov, 2009 13:42:42

Message: 1 of 2

I have a quick question.
I am trying to solve an ODE with final condition
How do I do this?
A simple example is
df/dx = f.
t = [0,10]
and f(t_f) = 5*exp(10)

If it was initial condition, I would do
f = ode45(@function,tspan,f0)
with properly defined function.

But I do not know how to solve ode with final condition.

Thank you for your help

Subject: Solving ODE with final condition

From: Bruno Luong

Date: 4 Nov, 2009 14:40:20

Message: 2 of 2

"Jamin / Ilwon" <jamitwidme@gmail.com> wrote in message <9e5b5bf4-b35d-4133-a16f-47aa2c74a306@p32g2000vbi.googlegroups.com>...
> I have a quick question.
> I am trying to solve an ODE with final condition
> How do I do this?
> A simple example is
> df/dx = f.
> t = [0,10]
> and f(t_f) = 5*exp(10)
>
> If it was initial condition, I would do
> f = ode45(@function,tspan,f0)
> with properly defined function.
>

Reverse the time, i.e., rewrite your ODE after changing the variable r := t_f - t;

Bruno

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com