Question: Least Squares fitting - matlab code IMPORTANT: Include a printout of your code and of the figure for Problem 2 - PLEASE DO If you

 Least Squares fitting - matlab code IMPORTANT: Include a printout of

Least Squares fitting - matlab code

IMPORTANT: Include a printout of your code and of the figure for Problem 2 - PLEASE DO

If you need more information let me know.

solve using your own coding style of matlab

Problem 2. Least squares fitting Derive the least-squares fit of the following model. Derive the equations using the method described in class. That is, determine the coefficients that results in the least-squares fit for a second-order polynomial with a zero intercept. Test the approach by using it to fit the following data, which describes force vs velocity measures in a wind tunnel: m/s 10 20 30 40 50 60 70 80 TV, F, N 25 70 380 550 610 1220 830 1450 In order to find the numerical values for the data, write a Matlab function fit QuadraticNolntercept. The inputs should the x and y vectors and the output should be the values of the a1 and a2 coefficients and the r2 value In another function named LastNameFirstNamePS4Pb2, enter the data, call your fitQuadraticNolntercept function and plot the data and the best fit. Both functions should be in the same file named LastName FirstNamePS4Pb2.m

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!