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
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!