Lab 11 - Problems - UNIVERSITY OF CALIFORNIA, BERKELEY...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
UNIVERSITY OF CALIFORNIA, BERKELEY Engineering 7 – Spring 2009 Department of Civil and Environmental Engineering Instructor: Professor Rector 1 Lab 11 [15 pts] Topics : Interpolation Assigned : Monday, 04/27/2009, 12:00 am Due : Friday, 05/04/2009, 5:00 pm Type : Take-home Interpolation of Traffic Data The process of finding the coefficients for the fitting function is called curve fitting; the process of estimating the outcomes in between sampled data points is called interpolation; whereas the process of estimating the outcomes beyond the range covered by the existing data is called extrapolation. The I-710 dataset shown in Table 1 contains hourly vehicle counts (i.e. hourly traffic counts) that were obtained at Caltrans Post Mile 18.51 on Interstate 710 Northbound in the Los Angeles area. These data are available in file “TCounts.txt” . In this lab, you will use different interpolation algorithms to interpolate these traffic count data. In part I , you will use MATLAB’s built-in interpolation routine, interp1.m , to interpolate and extrapolate the traffic data using three different (built-in) interpolation algorithms: 1. nearest neighbor, 2. linear, 3. cubic spline, and In part II , you will complete a partially written Lagrangian interpolation function in MATLAB function file, lagrange.m . In Part III , you will complete a partially written interpolation function and then use it to interpolate the traffic data. You will then compare your cubic spline interpolation to MATLAB’s cubic spline interpolated values. Period Start-time Vehicle Counts (veh per hour) 12:00 AM 809 1:00 AM 528 2:00 AM 499 3:00 AM 632 4:00 AM 1,109 5:00 AM 3,051 6:00 AM 4,958 7:00 AM 4,877 8:00 AM 4,574 9:00 AM 4,276 10:00 AM 4,062 11:00 AM 4,204 12:00 PM 4,117 1:00 PM 4,183 2:00 PM 4,474 3:00 PM 4,685 4:00 PM 4,838 5:00 PM 4,869 6:00 PM 4,425 7:00 PM 3,377 8:00 PM 2,659 9:00 PM 2,439 10:00 PM 1,965 11:00 PM 1,119 Table #1 Hourly Vehicle Counts Interstate 710 Northbound Post-mile: 18.51
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Lab 12 2 UNIVERSITY OF CALIFORNIA, BERKELEY Engineering 7 – Spring 2008 Department of Civil and Environmental Engineering Instructor: Professor Rector 1. Interpolation and Extrapolation – Matlab Functions (5 pts total) Part (a): Interpolating (2 points) In this part of the Lab, you are to use MATLAB’s built-in function interp1.m to interpolate the traffic counts at 5-minute intervals, using three of its interpolation algorithms (nearest, linear, spline). 'nearest' Nearest neighbor interpolation
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/12/2011 for the course E 7 taught by Professor Patzek during the Spring '08 term at University of California, Berkeley.

Page1 / 5

Lab 11 - Problems - UNIVERSITY OF CALIFORNIA, BERKELEY...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online