create MATLAB script with plenty of comments to solve the following question. A chemical reaction
Question:
create MATLAB script with plenty of comments to solve the following question.
A chemical reaction changes colour as it progresses, becoming more opaque. The progress of the reaction can be monitored by measuring the amount of light absorbed as light passes through the solution. The absorption is measured on a scale of 0 to 20 where 0 is no light absorption at all (transparent) and 20 is complete_ absorption (completely opaque). The reaction slows down as it progresses, and eventually approaches a maximum value of absorption.
(the question linked to a data set txt. file which I will copy down below).
Import it into Matlab to help answer the following questions:
(a) Fit a linear trend to the data (y = m * x + c). Give values for c and m to 4 decimal places.
Note: the fit will be quite poor.
c= ? m= ?
Fit a saturation growth model to the data: y = ax/(b+x)
Give the values of coefficients a and b (to 4 decimal places):
a= ? b= ?
absoprtion4.txt
t (min) absorption 0 0.00 1 2.06 2 3.38 3 4.46 4 5.16 5 5.74 6 6.18 7 6.72 8 6.91 9 7.34 10 7.47 11 7.74 12 7.81 13 8.03 14 8.20 15 8.27 16 8.34 17 8.54 18 8.72 19 8.75 20 8.78 21 8.91 22 8.96 23 8.87 24 8.91 25 9.24 26 9.04 27 9.28 28 9.14 29 9.27 30 9.42
^copy and paste from text file- please import into MATLAB
Discovering Advanced Algebra An Investigative Approach
ISBN: 978-1559539845
1st edition
Authors: Jerald Murdock, Ellen Kamischke, Eric Kamischke