Solve ODE for variable domain
显示 更早的评论
Hi all
is it possible to solve the same ODE system for 3 adiacent different domain? Do i need something like that?
if x>x1&&x<=x2
.
.
.
elseif x>=x2&&x<x3
.
.
.
elseif x>x3
.
.
.
end
how continuity will be preserved?
Thank you for the help
Regards
5 个评论
Alan Stevens
2020-9-3
What stops you solving it from x1 all the way past x3 in one go?
EldaEbrithil
2020-9-3
Alan Stevens
2020-9-3
Doesn't that just mean you have something like area as a function of x? If you define it as a separate function, you could call it from within your ode section.
EldaEbrithil
2020-9-3
EldaEbrithil
2020-9-3
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!