Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

the Question has been reposted with the apprriaote data given. thank you Problem 4: MATLAB programming (50 points) The so-called coast-down test is used to

the Question has been reposted with the apprriaote data given. thank you

image text in transcribed

Problem 4: MATLAB programming (50 points) The so-called "coast-down test" is used to measure the loss-inducing forces affecting a car The test simply consists in measuring the decrease in the speed v as a function of time t when the car is coasting in neutral. The deceleration can be modeled as where the coefficients c1, Cz and c represent the combined effects of aerodynamic drag, rolling resistance and drivetrain frictions. The file car speed.mat (available on T-Square under HW4) contains the results of such a test, in the form of a time vector t(in seconds) and a speed vector v (in miles per hour) 1) Write a completely generic MATLAB function that implements the quadratic polynomial regression technique. The function should have the form function [ a, Syx, r ] . quad-regression ( x, y ) , where x and y are the data vectors, a is a vector that contains the quadratic polynomial coefficients, Syx is the standard error of the estimate and r is the correlation coefficient. To compute the polynomial coefficients, the function should solve the normal equations in matrix form using the left matrix divide; a loop should NOT be used. The function should plot the data (individual points not connected by lines) as well as the parabola fit (continuous line with at least 100 points over the data range) on the same plot

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions