Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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) d (ft) 12.5 20 25 59 37.5 118 50 197 62.5 299 75 240 a) Using Matlab, make a plot of the data d versus V. Use an asterisk marker for the data points. b) Write a Matlab user defined function that determines the coefficients of a quadratic polynomial f(x)ao + a1x + a2x2 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, a2- c) Using Matlab, plot the polynomial obtained in b). Use a solid line for the polynomial lot. 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started