Question: Solve in MATLAB using the starter code and function to get the provided output. The specific growth rate of a yeast that produces antibiotic is

Solve in MATLAB using the starter code and function to get the provided output. The specific growth rate of a yeast that produces antibiotic is a function of the food concentration c :
g=2c4+0.8c+c2+0.2c3
As depicted in the following figure:
growth goes to zero at very low concentrations due to food limitation. It also goes to zero at high concentrations due to toxicity effects. Find that value of c at which growth is a maximum using MinParabolicinterpolation.mlx, and plot the results.
xopt =1.5679
fopt =0.3696
function [xopt, fopt]=MinParabolicInterpolation (func, xlow, xhigh, es, maxit, varargin)
if nargin`3, error('at least 3 input arguments required'), end
if nargin 4 l lisempty(es), es=0.0001; end
if nargin5I lisempty (maxit), maxit=50;end
iter =0;
x1=xlow;x3=xhigh;
x2=x1+x32;
, varargin {?
f2= func , varargin {?;
f3= func , varargin{;
if f21 & & f2+3, xoptold =x2; end
while (1)
xopt=x2-0.5***(x2-x1)2***(f2-f3)-(x2-x3)???2***(f2-f1)(x2-x1)***(f2-f3)-(x2-x3)***(f2-f1);
fopt = func(xopt, varargin {;
iter = iter +1 ;
if x opt >x2
x1=x2;
f1=f2;
else
x3=x2;
f3=f2;
end
x2= xopt; 2= fopt;
if xopt =0, ea=abs ((xopt - xoptold)/ xopt)*100 ;end
xoptold = xopt;
if ea=es II iter>=maxit,break, end
end
1
end
 Solve in MATLAB using the starter code and function to get

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!