MATLAB Pharmocokinetics
Semilinear Help
MATLAB_Pharmocokinetics_Semilinear is a graphical user interface (GUI) that corresponds to the pharmocokinetic model given by
![]() |
where y(t) and z(t) represent the concentration of DRUG Y at time, t, in the GI tract and bloodstream respectively . The positive parameters a,b correspond to the absorption rate of the drug into the blood stream and the rate at which the drug is eliminated from the blood stream (see the text for me details). The functions D and E account for the different dosing effects in the GI tract and blood stream respectively. The initial concentrations are prescribed via y0 and z0.
The purpose of the GUI is to investigate the consequences of imprecise information in a semilinear model. There are two panels, one named ‘Drug Model’ and the other named ‘Drug model with small errors in measurements’. The idea is you can input the imprecise measurements in the second panel and the true measurements in the first. The GUI will then output both solutions and visually you will see the consequences of measurements being “a little off”. In the GUI, parameters that have errors in them have a subscript of a 2. For example, a2 is the imprecise absorption rate into the blood stream.
To use the GUI, you must input four positive parameters per model panel and the amount of time the concentration will be measured in the panel named ‘User Panel’. In practice, measuring devices are relatively accurate, so for example the parameter a shouldn’t be too different then a2.
Once the inputs have been made, click on the Input Dosing and Solve button. Next, you will need to input the dosing effect functions Please pay special attention on the syntax for inputting such a function. For example, you will input y for both y(t) and y2(t).
The final output will compare the solutions in the GI tract and the blood stream.
Changes to one or all of the parameters can be made by replacing a desired parameter value with another. To reset the GUI, click the ‘Reset’ button.