Question: I need help with 1a. Example one is shown also. I cant figure out how to make it go up to the order of 5.
MATLAB sessions: Laboratory5 months as a column vector m (use the colon : operator), and enter the temperature values as a column vector T The goal of this problem is to find the polynomial of order 5, y-eto+z tc that gives the best least square fit to the data. tosr +r, (a) Follow Example 1 to find the coefficients of the best polynomial fit of order 5 (nake sure you part (b). appropriately modify the matrix X). Print the c values as you will need these to compare to Plot the data together with the polynomial fit. Make sure you define your wector q so that the graph of the polynmomial is nice and smooth. Hint: In order to defiue au appropriate vector q, think about the start and end values of the n vector and what stepsize you may want to use to obtain a smooth graph
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
