Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions

Question

=+ b. A change in weather patterns increases the depreciation rate.

Answered: 1 week ago