Question: This is a matlab question. Write a function, called Plot_Derivative( x, y ), which plots the derivative of the polynomial interpolated by(xi,yi), i=1:n . Assume

This is a matlab question.

Write a function, called Plot_Derivative( x, y ), which plots the derivative of the polynomial interpolated by(xi,yi), i=1:n . Assume that x is a linearly spaced, monotonically increasing vector, and that the plot should be limited to[x1,xn] . Use polyfit and polyval.

Using your function, plot the derivative of the Problem 2 equation, and verify that against Problem 3.

Problem 2 This problem is worth 1 points

Calculate the roots of the polynomial

What are the roots of the derivative of this polynomial, i.e. when y(x)=0? Are they all real numbers or not?

Problem 3 This problem is worth 2 points

Using Problem 2 equation, calculate the derivative using the polyder function. Plot both the function and it's derivative over the interval of[-2,3] . Ensure you use enough points that the plots come out smoothly.

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!