[solved]-Task 1 Use Spline Extrapolate Predict Population Us Year 2020 Use Interp1 Function Explain Q39022023

![Task # 2 Use spline to plot a curve on the interval of [-0.001:0.04:0.1). Known: x=[0.1 0.05 0.02 0.01 0.005 0.001]; y=[100 9](https://media.cheggcdn.com/media/cc4/s1024x718/cc4918e5-ac5b-43f5-985a-fc0000e95067/phpfyfyvy.png)
![Task #3 Use Modified Newtons interpolation method to plot a curve on the interval of [-2:0.05:3]. Known: X=[-1 -0.5 0 0.5 0.](https://media.cheggcdn.com/media/323/s1024x644/32352a70-8377-4073-a35e-526eddef7904/php4e75ex.png)

Task # 1 Use spline to extrapolate and predict the population of US in the year 2020. And then use interp1 function to do it, explain why no result. Known the two vectors : •t = [1920:10:2010] •p = [ 75.995 91.972 105.711 123.203 131.669 150.697 179.323 203.212 226.505 249.633] Task # 2 Use spline to plot a curve on the interval of [-0.001:0.04:0.1). Known: x=[0.1 0.05 0.02 0.01 0.005 0.001]; y=[100 94.68 72.10 41.82 27.13 11.69]; Task #3 Use Modified Newton’s interpolation method to plot a curve on the interval of [-2:0.05:3]. Known: X=[-1 -0.5 0 0.5 0.89 1.3]; y= -x.^2+x+0.5 Task # 4 Use Matlab built in function fitlm(x,y) to fit a line with root mean square error on following data set x = [1 2 3 4 5 6 7] y=[0.5 2.5 2.0 4.0 3.5 6.0 5.5] Also plot the line and data set Show transcribed image text Task # 1 Use spline to extrapolate and predict the population of US in the year 2020. And then use interp1 function to do it, explain why no result. Known the two vectors : •t = [1920:10:2010] •p = [ 75.995 91.972 105.711 123.203 131.669 150.697 179.323 203.212 226.505 249.633]
Task # 2 Use spline to plot a curve on the interval of [-0.001:0.04:0.1). Known: x=[0.1 0.05 0.02 0.01 0.005 0.001]; y=[100 94.68 72.10 41.82 27.13 11.69];
Task #3 Use Modified Newton’s interpolation method to plot a curve on the interval of [-2:0.05:3]. Known: X=[-1 -0.5 0 0.5 0.89 1.3]; y= -x.^2+x+0.5
Task # 4 Use Matlab built in function fitlm(x,y) to fit a line with root mean square error on following data set x = [1 2 3 4 5 6 7] y=[0.5 2.5 2.0 4.0 3.5 6.0 5.5] Also plot the line and data set
Expert Answer
Answer to Task # 1 Use spline to extrapolate and predict the population of US in the year 2020. And then use interp1 function to d… . . .
OR

