PLEASE ALSO SHOW THE MATLAB CODE
= Use Matlab function spl = spline(x,y) to interpolate the points that are given in the following table (where x,y are vectors). To extract the coefficients from the spline, use spl.coefs. Write a Matlab script that calculates the first and second derivatives of a point with x coordinates Xi. The script should also plot the points and the splines. The polynomials of the spline in Matlab in each interval (x1,x2] given in the following form: f(x)=a(x-x2)3+b(x-x1)2+c(x-x2)+d, where a,b,c,d are the coefficients. The only Matlab build-in functions you are allowed to use is spline, length, plot, scatter. Submit your Matlab scripts. are 6.66 16.8 x 0.76 y 3.74 9.44 9.97 4.90 9.62
PLEASE ALSO SHOW THE MATLAB CODE
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am