Simulating a differential equation with discontinuous right hand side

2 views (last 30 days)
Hi,
How can I simulate a switched system with discontinuous right hand side? Consider a linear system
xdotplus=[1 1; -1 -1]*x + [3;1]*u
and the switching conditions is given by
u={ 0 ; if x1+x2 >0 1 ; if x1+x2 <0}.
Note that u is discontinuous.

Answers (0)

Community Treasure Hunt

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

Start Hunting!