Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB ONLY!!! WRITE IN COMPUTER SO I CAN COPY PASTE The concentration of a drug in the body Cp can be modeled by the equation:

MATLAB ONLY!!! WRITE IN COMPUTER SO I CAN COPY PASTE

image text in transcribed

The concentration of a drug in the body Cp can be modeled by the equation: DG Cp ka (e-ket - e-kat) Va (ka ke) Where De is the dosage administrated (mg), Va is the volume of distribution (L), k, is the absorption rate constant (h-1), ka is the elimination rate constant (h-1), and t is the time (h) since the drug was administered. Create a function that bring as output the concentration of a drug in the body at time required. For a certain drug, the following quantities are given: Dg 150 mg, Va = 50 L, k. = 0.4 h-1, ka = 1.6 h-1 %3D Write as a function introduction in the comment space for help tool: The function input variables The function output variables The purpose of the function Add inside the function algorithm the command nargin Nargin (number of argument in), is very useful to verifying if the user enter the correct quantity of argument in the function. As example if the function need 3 argument add in the function: if nargin -= 3 errordlg('Not enough input arguments') end The concentration of a drug in the body Cp can be modeled by the equation: DG Cp ka (e-ket - e-kat) Va (ka ke) Where De is the dosage administrated (mg), Va is the volume of distribution (L), k, is the absorption rate constant (h-1), ka is the elimination rate constant (h-1), and t is the time (h) since the drug was administered. Create a function that bring as output the concentration of a drug in the body at time required. For a certain drug, the following quantities are given: Dg 150 mg, Va = 50 L, k. = 0.4 h-1, ka = 1.6 h-1 %3D Write as a function introduction in the comment space for help tool: The function input variables The function output variables The purpose of the function Add inside the function algorithm the command nargin Nargin (number of argument in), is very useful to verifying if the user enter the correct quantity of argument in the function. As example if the function need 3 argument add in the function: if nargin -= 3 errordlg('Not enough input arguments') end

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2016 Riva Del Garda Italy September 19 23 2016 Proceedings Part 3 Lnai 9853

Authors: Bettina Berendt ,Bjorn Bringmann ,Elisa Fromont ,Gemma Garriga ,Pauli Miettinen ,Nikolaj Tatti ,Volker Tresp

1st Edition

3319461303, 978-3319461304

More Books

Students also viewed these Databases questions