Solve system of linear ODEs with variable coefficients
Show older comments
I'm trying to solve a system of three linear differential equations with one important caveat: one of the terms assumes one of three values depending on the state of the other variables.

G(t) switches values between
and
depending on, for instance, whether (X-Y) is positive or negative. Can I obtain numerical solutions to this sytem in MATLAB, without having to go through Simulink?
Accepted Answer
More Answers (0)
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!