Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use matlab a) Create a simulated data set b) Create a set of plots to determine the best transformation to linearize the data c) Fit
Use matlab
a) Create a simulated data set b) Create a set of plots to determine the best transformation to linearize the data c) Fit a first order polynomial (y mx + b) to the linearized data to find the constants m and b d) Reconstruct the original equation from m and b in the linear fitted polynomial e) Plot the fitted equation. Radioactive decay is modeled by the equation: rt where A the amount of mass as a function of time (mg) A the original mass of decaying material (mg) the decay rate t the amount of time elapsed (years) Generate an set of mass measurements over time for Radium-226 (decay rate: 0.0436% per year). Use 0 st4000 years with r-0.000436 and A 20mg to generate 20 evenly spaced measurements of A. Next, add noise to your A vector to represent measurement error. Do this with the following code: This code generates a vector of length nSamples containing random values between-0.5 and +0.5, then scales each measurement by 10% . gnaiogl datg A is the A that you created above. The end result (Anoisy) has an artificial measurement error of up to 5% per measurement. Feel free to change the variable names. an ee o change the err ofup to 5% per Print the first and last values of A poisy to four decimal places. b) Determine which type of function provides the best fit by plotting the noisy data using the following transformations. Use the subplot command to include them in the same window. x-axis (your time data) In(x) In(x) y-axis lAngisyl Function Linear-y=mx + b Power -Y Exponential- Logarithmic -y m*Inx)+b In yl In y
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started