As specified in the following table, the earth’s density varies as a function of the distance from its center (r = 0):
Develop a script to fit these data with interp1 using the pchip option. Generate a plot showing the resulting fit along with the data points. Then use one of MATLAB’s integration functions to estimate the earth’s mass (in metric tonnes) by integrating the output of the interp1 function.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.