Question: Please answer in matlab a text file data.txt where the first line is a header, first column is time and second column is the recovery
Please answer in matlab
a text file "data.txt" where the first line is a header, first column is time and second column is the recovery data for the corresponding times as a fraction of 1. ie, a revoery of 0.3 means that you are recovering 30%.
(a) import the data from text file and plot the recovery data against time as blue diamonds.
(b) fit an appropriate function to the data. plot the fitted function in the same plot as raw data. include a legend DO NOT USE fit()
Think about how the shape of the models relate to the way the raw data is distributed in your Task A plot when deciding.
(c) print the recovery rate predicted by the fitted function if you were to take an infinitely long time. explain what is significant about prediction.
(d) what is the shortest time required to the nearest second to get a recovery rate of 95%. print using fprintf

time (s) Recovery 10 0.564 15 0.676 20 0.729 25 0.774 30 0.802 35 0.826 40 0.847 45 0.857 50 0.870 55 0.881 60 0.890 65 0.896 70 0.901 75 0.907 80 0.913 85 0.915 90 0.919 95 0.925 100 0.927 105 0.930 110 0.935 115 0.934 120 0.937
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
