Question
Please solve this using matlab and type in the codes here
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 (mi/h) 12.5 25 37.5 50 62.5 75 d (ft) 20 59 118 197 299 420 Use polyfit function to determine the coefficients of a quadratic polynomial d a v a v a that best fits the data. Make a plot to show the data points (asterisk marker) and polynomial (solid line
0 0
Add a comment Improve this question Transcribed image text
Answer #1

v = [12.5 25 37.5 50 62.5 75]
d = [20 59 118 197 299 420]
coeff = polyfit(v,d,2)
plot(v,d,'-x');

Output

coeff 0.066514 0.577714 2.600000

500 400 300 200 F 100 40 50 60 70 80 10 20 30

Add a comment
Know the answer?
Add Answer to:
Please solve this using matlab and type in the codes here The following data was obtained...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please solve using matlab and post the code used 1) Consider the following input data: x...

    Please solve using matlab and post the code used 1) Consider the following input data: x = [O 3.6 10 12 16.4 18.4 24]; y = [52 32.830 6.670 7 5.030 2*pi 8]; Use polyfit to a) determine the best polynomial fit for desired order n (1, 2, 3, 4, 5) b) determine the error between fitted and experimental data for the values of x c) determine the time to compute order range 0 to 6 using tic toc d)...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT