Question: Write a function out = polydiff ( C , x ) which finds the derivative of a polynomial of degree length ( C ) -

Write a function out = polydiff (C,x) which finds the derivative of a polynomial of degree length (C)-1 with the coefficients given in the row/column vector C evaluated at x. Your function should output a suitable error message if C is not a row or column vector. Your function should also plot the polynomial over the interval x-1,x+1. Test your function for C=repmat(myvec(1:3),1,2) and x=myvec(2).
Write a function out = polydiff ( C , x ) which

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 Programming Questions!