simple traduction from ode45 to ode15i

1 次查看(过去 30 天)
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

回答(1 个)

21did21
21did21 2013-1-19
can i have your help please ? thanks

类别

Help CenterFile Exchange 中查找有关 Ordinary Differential Equations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by