Question: MATLAB. Decay of radioactive materials can be modeled by the equation A=Ao e^(kt) where A is the amount of time t, Ao is the amount

MATLAB. Decay of radioactive materials can be modeled by the equation A=Ao e^(kt) where A is the amount of time t, Ao is the amount at t=0, and k is the decay constant (k<=0). Iodine-132 is a radioisotope that is used in thyroid function tests. Its half-life (A/Ao = 1/2) time is 13.3 hours. Set up the equations to calculate the relative amount of Iodine-132 (A/Ao) in a patient's body at a given number of hours after receiving a dose. Start by determining the value of k from the half-life, then create a relationship for the output of C. Keep in mind that a vector for time=0, 4, 8, ..., 48 will be sent to the code that you generate.

Hint: there are tests built to handle the different time scenarios, you do not need to define t = 0:4:48, etc.*

function C = radioactive(time,halflife) %Use the input half-life to determine the value of k in the radioactive decay problem %then use the vector time to build the concentration "C" based on the calculated k constant %keep the end statement end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!