Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Help would be appreciated! Let f(x) be the cubic spline from the problem below. Thus myCubicSplineEval is the function to evaluate the cubic spline f(x)

Help would be appreciated!

Let f(x) be the cubic spline from the problem below. Thus myCubicSplineEval is the function to evaluate the cubic spline f(x) and it can be used like any other Matlab function that evaluates f(x). Find all roots of f(x) and their tolerance in function with at least 8 significant digits between 7 x 9 using a root finding method. State the name of the root finding method you used.

%set data vecx = [0.0;0.5;1.0;1.5;2.0;]; vecy = [0.1,0.2,0.3,0.4,0.5];

myCubicSplineCoeffs(vecx,vecy)

%generate data from the cubic spline xvec = linspace(0,10,1000); yvec = myCubicSplineEval(xvec);

%Plot the data points and cubic spline plot(vecx,vecy,'o', 'MarkerSize',16,'MarkerFaceColor','k'); hold on; plot(xvec,yvec,'k-','Linewidth',3); legend('measured data', 'cubic spline','location','southwest');

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Select Healthcare Classification Systems And Databases

Authors: Katherine S. Rowell, Ann Cutrell

1st Edition

0615909760, 978-0615909769

More Books

Students also viewed these Databases questions