Clear Filters
Clear Filters

simple traduction from ode45 to ode15i

1 view (last 30 days)
21did21
21did21 on 8 Jan 2013
Hello all,
could you explain to me how to solve a differential system with matlab please?
with ode45 I know:
main.m
A=eye(3)+5;
B=1:1:3; B=B';
[t,y]=ode45(@(t,y)equadiffOde45(t,y,A,B), [0 100], zeros(1,length(B)));
myFun.m
function dy=myFun(t,y,A,B)
dy=zeros(length(B),1);
dy(:,1)=A*y+B;
but I can not find the equivalent with ode15i
could you please show me the equivalent code but with ode15i ?
there are two things I do not understand: 1) the form in which must be written myfun 2) the call ode15i more particularly the initial derivative (it should be 0 not always?)
thank you for your help

Answers (1)

21did21
21did21 on 19 Jan 2013
can i have your help please ? thanks

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!