Question: X = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20] Y = [-93

X = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20] Y = [-93 220 -8 -94 327 456 312 318 608 954 1378 1609 2248 2850 3236 3905 4811 5741 6821 8004] a. Use polyfit and polyval to find the best fit for X and Y. The best fit might be a higher degree polynomial. Plot both the original X and Y and the fitted ones on top of each other. b. Use the curvefitting toolbox (fit command) to find the best fit.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!