-
Notifications
You must be signed in to change notification settings - Fork 2
/
MM_script4.m
28 lines (25 loc) · 986 Bytes
/
MM_script4.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
%MM_script4 Full kinetic model of irreversible enzyme reaction with
%inflow and outflow.
%Simulation with variable step integration method (ode15s).
%Parameters and input are defined outside the ODE file
% Parameter values:
kp1 = 1000; %kp1 - forward rate constant (M^{-1} sec^{-1})
km1 = 1.0; %km1 - reverse rate constant (sec^{-1})
kp2 = 0.1; %kp2 - forward rate constant (sec^{-1})
E0 = 1e-4; %E0 - total enzyme concentration (M)
kp3 = 0.01; %kp3 - rate constant product outflux (sec^{-1})
par = [kp1, km1, kp2, E0, kp3];
%Input
inputfile = @MM_pulse;
% Initial Conditions:
x0 = [0.001 0 0 0];
% Integrate ODE:
tspan = [0 5000]; %(s)
odeoptions = []; %use defaults
[t,x] = ode15s(@MM_ode4,tspan,x0,odeoptions, par,inputfile);
% Plot results:
figure; plot(t,x(:,1)*1e3,t,x(:,2)*1e3,t,x(:,3)*1e3);
xlabel('Time (s)'); ylabel('(mM)')
legend('a','b','c')
title('Model with constant + pulsed inflow')
figure; plot(t(2:end),diff(x(:,4))./diff(t))