1. (10m) For the following data from Fig. 6-11 of Gilat: x 147 10 13 y2648 10 Find the third and fourth order polynomial
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
1. (10m) For the following data from Fig. 6-11 of Gilat: x 147 10 13 y2648 10 Find the third and fourth order polynomial
1. (10m) For the following data from Fig. 6-11 of Gilat: x 147 10 13 y2648 10 Find the third and fourth order polynomials as follows, (a) (3m) Write a MATLAB script to find the coefficients of the polynomial using a system of linear equations (not Lagrange polynomial interpolation) as shown at the start of Gilat sec- tion 6.5. Try and make the script flexible by using an outer loop for n = 3:4, rather than "hard-wiring" the script to a third and fourth order polynomial as was done in Gilat. Hand in tables of coefficients for each model. (b) (2m) Find the coefficients of the best-fit polynomial using the built-in MATLAB functions polyfit and polyval. Hand in tables of coefficients for each model. (c) (2m) Create two plots, one for each polynomial order. In each plot, graph the data and the two polynomials. Include a title and a legend in the plot. (d) (3m) Make some observations about the two polynomial models within each plot and in the coefficient tables, and compare the polynomial models between plots.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!