Find the least squares polynomials of degree 1 for the data in the following table. Compute the erro

 

Find the least squares polynomials of degree 1 for the data in the following table. Compute the error E. Use MATLAB.  (Submitted in Assignment 8).  Do not submit again. Only show values of Pxi.

xi   1.0     1.1     1.3     1.5     1.9     2.1
yi   1.84   1.96   2.21   2.45   2.94   3.18

1. Plot (xi, yi) and plot (xi, Pxi) found from assignment 8.  Use one graph to plot xi,yi and the polynomial.  You can use markers or legends or line width etc. to differentiate the lines.  Use title, and label the axes in the graphs.  Copy and paste ALL WORK for the graphs.
 

2. Plot (xi, yi) and plot (xi, Pxi) found from assignment 8.  Use separate graph to plot xi,yi and the polynomial.  You can use markers or legends or line width etc. to differentiate the lines.  Use title, and label the axes in the graphs.  Copy and paste ALL WORK for the graphs.

 3. What did you notice when you compare the two graphs? why?

Needs help with similar assignment?

We are available 24x7 to deliver the best services and assignment ready within 3-4 hours? Order a custom-written, plagiarism-free paper

Get Answer Over WhatsApp Order Paper Now