Assignment
Find the least squares polynomials of degree 1 for the data in the following table. Compute the error E. Use MATLAB.
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. 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. 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?
The response should include a reference list. Double-space, using Times New Roman 12 pnt font, one-inch margins, and APA style of writing and citations.