Question: ( b ) Cubic Spline Interpolation Build a MATLAB function which takes n data points ( x 1 , y 1 ) , dots, (

(b) Cubic Spline Interpolation
Build a MATLAB function which takes n data points (x1,y1),dots,(xn,yn) as input variables and outputs
a natural cubic spline interpolant f(in the form of a symbolic function) that fits the data by following the
algorithm presented in class (the efficient approach that only requires us to solve n equations).
i. Use your Cubic Spline Interpolation MATLAB function to produce a natural cubic spline interpolant
(a symbolic function) that models temperature TSpline(z) as a function of depth z and fits the provided
depth/temperature data. You don't need to submit the actual form of the symbolic function (it will be
ugly). Instead, submit a plot of your spline interpolant TSpline(z) over the interval of depths zin[0.1,27.1].?4
ii. Submit another plot of the graph of the magnitude of the derivative |TSpline'(z)| over the interval of depths
zin[0.1,27.1]. Based on this plot, make a guess for the depth of the thermocline, and then use one of the
open root finding algorithms you built for Question 1(b) to approximate, to 3 significant figures, the depth
of the thermocline zthermocline according to the temperature distribution TSpline(z). Is this a reasonable
value for zthermocline?
 (b) Cubic Spline Interpolation Build a MATLAB function which takes n

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!