Re: Solving a intial boundary value problem using ode15s
- From: "John D'Errico" <woodchips@xxxxxxxxxxxxxxxx>
- Date: Mon, 9 Jun 2008 12:36:01 +0000 (UTC)
"Rob " <rsluijs@xxxxxxxxxxx> wrote in message
<g2j6s6$h6v$1@xxxxxxxxxxxxxxxxxx>...
Hello,
How can is solve the following equation using ode15s on a
time interval of 0 < t < 2?
dy/dt = c*A*y+c*g
with:
c = a scalar
A = NxN matrix
g = Nx1 vector
initial condition: y(at t=0) = 0
Is y a vector? If not, then your equation
does not conform mathematically.
Did you read the help for ode15s?
I'll give you a hint. Use an anonymous
function.
odefun = @(t,y) c*A*y+c*g;
John
.
- Follow-Ups:
- References:
- Prev by Date: Loading Data in Look Up Tables
- Next by Date: set my values to zero
- Previous by thread: Solving a intial boundary value problem using ode15s
- Next by thread: Re: Solving a intial boundary value problem using ode15s
- Index(es):
Relevant Pages
|