Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions