Question: Please show ALL steps in MATLAB. Please make the code as simple as possible. 1. a) Create an m-file to compute the value of an

Please show ALL steps in MATLAB. Please make the code as simple as possible.

Please show ALL steps in MATLAB. Please make the code as simple

1. a) Create an m-file to compute the value of an nth-degree polynomial: g(x) = 2, +ajx +azx2 + ... + 24-17"-1 + ant" where the inputs to the function are the degree n of the polynomial, the coefficients ay of the polynomial, and the value of x. (This will create your own version of the MATLAB command polyval.) Note: There are different ways to achieve this; one simple approach could be to compute the polynomial value as an iterative sum: (+1) gue Qxx(k-1) b) Use your m-file function to generate a 6.degree polynomial. Plot your 6h.degree polynomial: does it have any x-intercepts? If not, experiment with different coefficients until you get a polynomial with x-intercepts. Adjust your plot parameters so that the main features of the polynomial are visible (x-intercepts, y-intercept, local maxima, local minima). From the graph, estimate the x-intercepts of the polynomial. c) Submit your m-file for the ne.degree polynomial from part(a), your final plot from part (b) showing the main features of your polynomial, and your estimate of the x-intercepts of the polynomial. The final plot can be part of an mix-file or submitted separately in a Word doc or PDF)

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!