ode in a for loop updating initial conditions
3 ビュー (過去 30 日間)
I created the files in attached, main and @greitzer (function). In main I call the function in @greitzer.
Now I would like to put the ode in a for loop to solve the problem for each values of giri.
I'd like the first loop to be from:
to the second value of time_rpm(i)
with initial condition y1(1)=0 and y2(0).
Now the second loop, for the second value of giri, so
should be in the interval
with the initial condition to be the last evaluation of the previous loop
y1(i+1) = y(end,1); %initial condition 1
y2(i+1) = y(end,2); %initial condition 2