Question: Consider the following code: x = 0:5; y = [25 19 18 15 11 9]; coef = polyfit(x, y, 5); new_y = polyval(coef, x); 1.
Consider the following code: x = 0:5; y = [25 19 18 15 11 9]; coef = polyfit(x, y, 5); new_y = polyval(coef, x); 1. Does the code produce the perfect fit for the points (True/False) ? In your own words explain why? 2. Mention two factors that can help us improve our curve and get a better fit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
