Question: Functions Instructions Complete the problems below by creating MATLAB functions. Complete the assignment by posting an individual m for each problem to the D2L folder.
Functions Instructions Complete the problems below by creating MATLAB functions. Complete the assignment by posting an individual m for each problem to the D2L folder. This is different than in the past. In this case you are going to have to submit two m files, one for each function. Note: this means that you will not be using the naming convention that we have used so far in this class! Read the problems carefully, they will instruct you how to name your .m files. Problems A model for exponential growth or decay of a quantity is given by A(t) = Aoekt Where A(t) and Ao are the quantity at time t and time 0, respectively, and k is a constant unique to the specific application. Write a function that uses this model to predict the quantity A) at time from knowledge of Ao and A) at some other time t. For function names and arguments, use At expGD(A0 ,At 1, t1 ,t) where the output argument At corresponds to A(l) and for input arguments use A0,Atl,tl,t, corresponding to Ao, A(t), i, and respectively If you want to test your function, the TAs will be testing it in the following two scenarios. a) The population of Mexico was 67 million in the year 1980 and 79 million in 1986. Estimate the population in 2000 based on those numbers. b) The half-life of a radioactive material is 5.8 years. How much of a 7-gram sample will be left after 30 years
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
