21.07.2013 Views

nr. 477 - 2011 - Institut for Natur, Systemer og Modeller (NSM)

nr. 477 - 2011 - Institut for Natur, Systemer og Modeller (NSM)

nr. 477 - 2011 - Institut for Natur, Systemer og Modeller (NSM)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

C.2 Code <strong>for</strong> the Newton-Raphson Method 169<br />

end<br />

E=eig(jac);<br />

%-----------------------------------------<br />

%The code to "call" when solving the system<br />

of differential equations by ode45.<br />

function Mdot = eqdefT1D_full(M)<br />

global g;<br />

b = 0.09; %defines the parameter values<br />

c = 0.1;<br />

d = 0.5;<br />

e = 1e-8;<br />

f2=1e-5;<br />

f1=1e-5<br />

a = 5e4;<br />

k = 0.4;<br />

alpha=5e-9;<br />

delta=25;<br />

kc=1;<br />

Amax = 2e7;<br />

kb=(delta/alpha)*kc;<br />

%DuCa model without apoptotic wave<br />

Mdot = [a + (b + k) * M(2) - c * M(1) -<br />

f1 * M(1) * M(3) - e * M(1) * ( M(1) + M(2) );<br />

;f1 * M(1) * M(3) - k * M(2) - e * M(2) * ( M(1) + M(2) );<br />

;(( Amax * M(5) )./( kc + M(5) )) - f1 * M(1) * M(3)<br />

- f2 * M(2) * M(3) - d * M(3);<br />

;d * M(3) - f1 * M(1) * M(4) - f2 * M(2)* M(4);<br />

;alpha * M(4) * M(2) - delta * M(5)];<br />

%------------------------------<br />

%A sample code used <strong>for</strong> solving the system of differential<br />

%equations by ode15s<br />

clear all<br />

close all<br />

% initial values<br />

M = [4e3 10e6 2e3 2e3 2e3];<br />

% time span<br />

tspan = [0 200];

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!