Question: Please use the MATLAB to solve the following Question . Thank you in advance Problem statement: The following data was obtained when the stopping distance
Please use the MATLAB to solve the following Question . Thank you in advance

Problem statement: The following data was obtained when the stopping distance d of a car on a wet road was measured as a function of the speed V when the brakes were applied: V (mph) 12.5 20 25 59 37.5 118 50 197 62.5 299 75 240 d (ft) a) Using Matlab, make a plot of the data d versus V. Use an asterisk marker for the data b) Write a Matlab user defined function that determines the coefficients of a quadratic points polynomial f(x) = ao + aix + ar that best fits a given set of data points. Name the function a - QuadFit (x, y), where the input arguments x and y are vectors with the coordinates of the data points, and the output argument a is a three-element vector with the values of the coefficients ao, a1, a. c) Using Matlab, plot the polynomial obtained in b). Use a solid line for the polynomial plot. d) Use Matlab's built-in function polyfit to create a quadratic polynomial fit to the data and recreate the same plot as in c)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
