title: Battery Charging and discharging in Matlab Simulink
body: <p>In the <a href="https://in.mathworks.com/matlabcentral/answers/318520-battery-charging-and-discharging" rel="nofollow noreferrer">model attached</a> there are two batteries. First battery is charging the second battery. There is a breaker which is used to break the circuit and stop the charging after 5 seconds. The problem is, second battery continue charging ever after the breaker is open. Please suggest how is it possible. And how to overcome this problem. I want to stop the charging after 5 seconds of simulation. Thanks</p>