Question: Hello i am studying MATLAB and need help with this exercise. Please look at the attached photos as they all are related each other and
First, we consider the following problem: The stopping distance of a car on a certain road is presented in the Table below as a function of initial velocity Ve (kmh Distance 33.01 33.01 41.06 49.11 57.11 65.21 71.81 78.57 85.81 93.06 4.69 4.05 6.86 10.33 15.61 22.28 28.04 34.44 39.01 43.46 -133.01 33.01 41.06 49.11 57.16 65.21 71.81 78.57 8581 93.061 y-14.69 4.05 6.86 10.33 15.61 22.28 28.04 34.44 39.01 43.461 We wish to fit the stopping distance (y) as a linear function of velocity (x). In order to do this, in this exercise we will use two intrinsic MATLAB functions: 73 Function polyfit Description Polynomial curve fit polyva Evaluation of polynomial fit The MATLAB polyfit function generates a best fit' polynomial of a specified order fora given set of data. For a linear fit, we will use: p-polyfit (x.y.l) where "1" means linear or first order. 1 is replaced by "2" for a quadratic or second order fit ete) This retums: 0.6762-20.2188 To evaluate the fitted polynomial at the velocity values (x) and plot the fit against the observed data we use: plot (w,4.x-3 1,'-'), grid on In the resulting figure, you will see presented the original data and the linear fit. We can see given set of data. How do we define the that the linear fit is not really working well for the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
