This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: , 'NorthWest' ) % Evaluate the polynomials for a car going 65 mph. v = 65*1.6; %car's speed in km/hr dist = (polyval(f1,v) + polyval(f2,v))*3.281; %stopping dist in ft fprintf( 'The stopping distance for a car going 65 mph is %4.1f feet.\n' ,dist) 1. Output: The stopping distance for a car going 65 mph is 272.5 feet. Notes: â€“ To â€śdevelopâ€ť the best-fit equations, i.e., to figure out the order of the best-fit polynomial, you must plot the data points, and notice that the thinking data appears to be linear, and the braking data appears to be quadratic. Polynomials of order 1, 2, 3, or 4 are acceptable to fit to the thinking data, and polynomials of order 2, 3, 4, or 5 are acceptable to fit to the braking data. I used 1st-order and 2nd-order, respectively. â€“ Convert 65 mph to km/hr. The number you get as an output will be in meters, so convert that number to feet....
View Full Document
- Spring '08
- Automobile, Brake, best-fit curves, Create best-fit polynomials