I have an ODE system such as
b=1;f = @(t,x) -(b/N)*x(1)*x(2);ODE45
I want to write a loop that changes the value of b. But it does not seem to me that just changing the value of b will not update the equation f thus the solution.
b=2;f = @(t,x) -(b/N)*x(1)*x(2)ODE45
What should be done here?
Best Answer