Question: *** I have attached all the calculation I just need the MATLAB part please read and answer the question*** After solving this single case by
*** I have attached all the calculation I just need the MATLAB part please read and answer the question***
After solving this single case by hand, write a MATLAB function that takes one input, the mass of drug to be delivered, and produces one output, the time this delivery will take. The function signature should be
function [delivery_time] = compute_delivery_time(drug_mass)

The rate of mass transfer can be calculated as, Here, N is the rate of mass transfer, h is the mass-transfer coefficient, A is the cross- sectional area and c, is the concentration of species A. Substitute, 3.5 cm2 for A, 5.8x10 gmol/L for cA0.016 cm/s forh, o for cand solve, N,-(0016 cm's)(3.5 en')(5.8x10 , grmoVL-0) l cm 3.2x10 s )(0.016mm 3.210 200x10gmol min Number of gram moles, n of the drug can be calculated as, 1n MW Here, m is the given mass and MWis the molecular weight. Substitute, 50 mg for m, 357.79 g/mol for Mw and solve for n, 50 57.79 g/mol = 0.14 gmol The time required to deliver 50 mg of the drug can be calculated as, It Substitute, 200x10r N. 0.14 gmol for n and solve min 0.14 200x10 gmol min = 7 x 105 min Thus, the time required to deliver 50 mg of the drug comes out to be 7x10 min
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
