Problems Set 7 Set 7 No 3 Problem Description The concentration of a drug in the
ID: 3805247 • Letter: P
Question
Problems Set 7 Set 7 No 3 Problem Description The concentration of a drug in the body, Cp, can be modeled by the equation: Cp (DgNd)(ka/(ka-ke) (en (-ket)-en (-kat)) where Dg is the dosage administered in mg, Vd is the volume of the distribution in liters, ka is the absorption rate of the drug into the body in 1/hour, ke is the body's elimination rate of the drug from the body also in l/hr, and t is the time in hours since the drug was administered Create a script file that uses a for loop to calculate the concentration of four, 6 hour doses of a drug over a 24 hour period every 6 minutes (0.1 hours) given that Dg 250 mg, Vd 50 L, ka 0.8 a hn-1, and ke30.25 hn-1 Solution MATLAB Documentation 1 Use a for loop with a nested if statement to solve this problemExplanation / Answer
% Matlab code:-
% initializing given values of Dg, Vd, ka and ke
Dg=250;
Vd=50;
ka=0.8;
ke=0.25;
for t=1:0.1:24 % loop for time = 1 to 24 hours every 0.1 hour
if mod(t,6)==0 % since the concentration is asked for four 6 hour doses i.e for 6,12,18,24 hours
Cp = (Dg/Vd)*(ka/(ka-ke))*(exp(-ke * t)-exp(-ka * t)) % expression to caluculate Cp (concentration) and print it's %value
end
end
%{
output:
Cp = 1.5629
Cp = 0.36160
Cp = 0.080789
Cp = 0.018027
Therefore the concentration of drug at 6,12,18,24 hours is 1.5629,0.3616,0.0808 and 0.0180 respectively.
%}
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.