Matematisk Model for Mavesækkens Tømning - Danmarks Tekniske ...
Matematisk Model for Mavesækkens Tømning - Danmarks Tekniske ...
Matematisk Model for Mavesækkens Tømning - Danmarks Tekniske ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Bilag D<br />
MATLAB kode til simulering<br />
af <strong>for</strong>søgsscenarie<br />
I dette Appendix findes de 5 MATLAB-scripts, som er nødvendige <strong>for</strong> at kunne<br />
simulere <strong>for</strong>søgsscenariet. Derudover findes 3 scripts fra simulering af <strong>for</strong>søgsscenariet<br />
med controller <strong>for</strong> de tre blodsukre 2.5 mmol/L, 5 mmol/L og 10 mmol/L.<br />
Listing D.1: HovorkaParametersPancreas.m<br />
1 function par = HovorkaParametersPancreas(BodyMass)<br />
2 % HOVORKAPARAMETERS Computes the parameters <strong>for</strong> the Hovorka <strong>Model</strong><br />
3 %<br />
4 % Computes the parameters <strong>for</strong> the Hovorka model as function of body mass.<br />
5 %<br />
6 % Syntax: par = HovorkaParametersPancreas(BodyMass)<br />
7 %<br />
8 % BodyMass: Weight of individual [kg]<br />
9 % par: Structure with the parameters<br />
10<br />
11 %==========================================================================<br />
12 % Modified 23.07.09 SW<br />
13 %==========================================================================<br />
14<br />
15 par.k12 = 0.066; % Transfer rate [1/min]<br />
16 par.ka1 = 0.006; % Deactivation rate [1/min]<br />
17 par.ka2 = 0.06; % Deactivation rate [1/min]<br />
18 par.ka3 = 0.03; % Deactivation rate [1/min]