Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

required to stop an automobile is a function of velocity (v). The following experimental data was collected to quantify this relationship. Question 3: (40 marks)

 required to stop an automobile is a function of velocity (v). The following experimental data was collected to quantify this relationship.

Question 3: (40 marks) The braking distance (s) required to stop an automobile is a function of velocity (v). The following experimental data was collected to quantify this relationship. v. km/hr s, m 30 5.0 45 12.3 60 21.0 75 32.9 90 47.6 120 84.7 (a) Suppose all these data can be fitted by a power relationship, i.e. s = ax vb where a and b are the fitting coefficients. Use the MATLAB built-in function fit to find the fitting curve and plot them in a red solid line by MATLAB function plot. Plot the experimental data with blue *** symbols for comparison with the fitting curve. Label the x axis as *Velocity (km/hr)', the y axis as 'Braking distance (m)', and the title as 'Power fitting'. (b) Based on the power regression, create a function M-file ("Power.m") to fit the experimental data (Do not use the MATLAB build-in functions). In the function, the input arguments are v and s, the output variable is the coefficient vector coef[a, b], i.e. function coef-power (v, s). (c) Write a script M-file ("task_c.m") to plot both the fitting curve (using a red dashed line) and the source data (using square symbols). The function M-file ("power.m") will be called to obtain the fitting data. Label the x axis as 'Velocity (km/hr)', and the y axis as *Braking distance (m)'. Include a grid over the plot area.

Step by Step Solution

3.48 Rating (164 Votes )

There are 3 Steps involved in it

Step: 1

Solution a MATLAB Script Instead of lines 1319 you could als... 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

Managing Human Resources

Authors: Wayne F. Cascio

9th edition

78029171, 978-0078029172

More Books

Students also viewed these Mechanical Engineering questions

Question

What are the steps in the accounting cycle?

Answered: 1 week ago

Question

What is the objective of building and managing a diverse workforce?

Answered: 1 week ago