Question: Problem 5 (10 pts). You are finding the coefficients a that best fit the data (t.y). where the data points are t 3 4 5

 Problem 5 (10 pts). You are finding the coefficients a that

Problem 5 (10 pts). You are finding the coefficients a that best fit the data (t.y). where the data points are t 3 4 5 6 7 89 10 y 14.5730 -35.3730 -72.3730 -129.7730-211.7730 -322.5730 -466.3730-647.3730 (1) Fill in the code to find the coefficients a using the buit in function polyfit. t 13 4 5 6 7 8 9 10]; y [-14.5730 -35.3730 -72.3730-129.7730-211.7730-322.5730-466.3730 -647.3730] p-polyfit L ,-,--) ; (2) You are plotting the above given data with red start marks, and draw the fitted curve with blue solid line. Complete the code. tfit-0:0.1:10; yfit- polyval( plot(_) Problem 6 (20 pts). Write a code to draw the 3D plot, z-x? * sin(y) + y2 * cos(x). (Hint) You should use linespace, mesh grid and surf command

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!