Re: Solving a intial boundary value problem using ode15s



"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
.



Relevant Pages