Change parameter value during ode15s solution
조회 수: 3(최근 30일)
I'm solving a set of differential equations and I'd like to change the value of a constant (Pin) at a specific time during the solution. Meaning that during the timespan, I'd like to change the value of Pin. So it time>10, Pin=70, else Pin=60.
This is how I formulated it but it's not working:
[t,y] = ode15s(@fun2,tspan, cond,);
function dydt= fun2(t,y)