Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need a FLOWCHART of this computer matlab code. 6 7. 8 23 $main function to take inputs % user takes input Dosage administered (mg),

I need a FLOWCHART of this computer matlab code.
image text in transcribed
6 7. 8 23 $main function to take inputs % user takes input Dosage administered (mg), & vd which is volume of distribution (L), 9 Ke which is the absorption constant (-1), 10 & Ka which is the elimination constant (h-1), 11 % and time since the drug was administared (hours). 12 function CP 13- D = input('Enter Dosage Administered in mg '); 14 - vd = input ("Volume of distribution in Litres '); 15 - Ke - input('enter absorption constant Ke '); 16- Ka = input('enter elimination constant ka '); 17- t = input (enter the time since the drug was administered in hours '); 18 tcalling function to calculate the concentration of drug in body 19- x = conc(D, Vd, Ke, Ka,t); 20- fprintf('8f ',x); 21- end 22 function to calculate the concentration of drug in body (in mg/L*hour) at time required it takes 5 inputs (Dg, vd, Ka, Ke,t) and give 1 output which is 24 Sconcentration of drugs in body 25 function cp - conc(D, Vd, Ke, Ka,t) 26 condition to check the number of input arguments 27- if nargin--5 28 display an error dialogue box if no. of arguments are not equal to 5 29- errordig ('Not enough arguments); 30 - end 31 sequation for calculating the concentration 32- cp - (D* (Ka)* (exp(-Ke*t) - exp(-Ka*t>>>/(vd* (Ka-Ke)); 33 - end Command Window Enter Dosage Administered in mg 150 Volume of distribution in Litres 50 enter absorption constant Ke 0.4 enter elimination constant Ka 1.6 enter the time since the drug was administered in hours 2 1.634267 fx >> NNNN >> CP

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

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions

Question

What resources are/will be available?

Answered: 1 week ago

Question

CL I P COL Astro- L(1-cas0) Lsing *A=2 L sin(0/2)

Answered: 1 week ago