Note: The fsolve function must be available. This is standard with MATLAB 4.x, but requires the optimization toolbox for MATLAB 5.x. To run this file, simply enter
x0 = [1;2]; % initial guess for biomass and substrate concentrations
x = fsolve('bio_ss',x0);
at the MATLAB prompt. The solution obtained for these sets of parameters is
x =
0.9951
1.5122
To reproduce Figure M8.3, use:
x0 = [0.75;2];
[t,x] = ode45('bio',[0 30],x0); % MATLAB 5.x
[t,x] = ode45('bio',0,30,x0); % MATLAB 4.x
bio_phasPlease note that you need to change the call to ode45 within bio_phas.m if you are using MATLAB 5.x.