In: Computer Science
Write a function that plots a spline curve for arbitrary x values if a solution for Ci is provided in vector form. Name the function spline_group and illustrate results.
Matlab Program
`Hey,
Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.
clc
clear all
close all
clear all
x=[1 3 5 7];
y=[20 17 23 19];
xp=linspace(1,7,100);
yp=interp1(x,y,xp,'spline');
plot(xp,yp,'k',x,y,'ko')
xlabel('x-values'),ylabel('y-values'),
legend('interpolated graph','given data')
axis([1 7 15 24])

Kindly revert for any queries
Thanks.