01.04.2014 Views

Assignment 1: Matlab Practice

Assignment 1: Matlab Practice

Assignment 1: Matlab Practice

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CEE 3604: Introduction to Transportation Engineering Fall 2009<br />

Date Due: September 3, 2009<br />

<strong>Assignment</strong> 1: <strong>Matlab</strong> <strong>Practice</strong><br />

Instructor: Trani<br />

Problem 1<br />

The flight profile of an Airbus A380 (see Figure 1) approaching Los Angeles International Airport (LAX) is contained in the file<br />

called flightProfile.m. The file contains four columns as shown below.<br />

% File containing the flight profile of an Airbus A380<br />

% approaching runway 24R at Los Angeles airport<br />

%<br />

% Column 1 = Time (seconds)<br />

% Column 2 = Distance traveled (nautical miles)<br />

% Column 3 = Speed (knots or nautical miles per hour). A knot = 1.15 miles per hour<br />

% Column 4 = Altitude above mean sea level (feet)<br />

0 0.0000 249.0000 5500<br />

1 0.0691 248.7528 5500<br />

2 0.1381 248.7528 5500<br />

3 0.2072 248.7528 5500<br />

.....<br />

Figure 1. Airbus A380 Near Touchdown to Runway 24R at Los Angeles International Airport (A. Trani).<br />

a) Read the M-file using the <strong>Matlab</strong> import wizard or the <strong>Matlab</strong> “load” command<br />

b) Create a new <strong>Matlab</strong> script to do the following:<br />

b.1) Create four new vectors and label them: time, distance, speed and altitude.<br />

CEE 3604 A1 Trani Page 1 of 3


.2) Insert the values of time, distance traveled, speed and altitude in the original file into each one of the vectors<br />

created in step (b.1).<br />

b.3) Plot distance traveled (in x-axis) vs speed (y-axis). Label axes and change default font sizes to size 16 for both x<br />

and y labels. Change the color of the line to blue. Comment on the shape of the profile observed.<br />

b.5) Plot distance traveled (in x-axis) vs altitude (y-axis). Label axes and change default font sizes to size 16 for both x<br />

and y labels. Change the color of the line to red. Comment on the shape of the profile observed.<br />

c) Estimate the average speed (in knots) for this flight profile from time = 0 to touchdown. The elevation of the airport is<br />

127.11 feet above sea level. Show your procedure to estimate the average speed.<br />

d) For safety reasons (due to wake vortex), aircraft approaching the same runway are kept 10 nautical miles behind the<br />

A380. Find the number of Airbus A380s that could land in one hour on the same runway. This value is called the hourly<br />

capacity of the runway.<br />

_____________________________________________<br />

Problem 2<br />

The speed profile of a Toyota Camry traveling on an arterial road in the state of New Mexico is contained in the file called<br />

gpsData.m. The file contains three columns as shown below.<br />

% GPS car data collected in New Mexico<br />

% Car = Toyota Camry (model 2001)<br />

%<br />

% Column 1 = Time of observation (seconds)<br />

% Column 2 = Distance traveled (m)<br />

% Column 3 = Speed (km/hr)<br />

0 0 0<br />

2 24.1 42.1<br />

4 51.3 52.1<br />

6 82.9 55.6<br />

8 115.6 58.9<br />

10 149.3 60.8<br />

....<br />

a) Import the data into <strong>Matlab</strong> using the import wizard or using the “load” command.<br />

b) Create a <strong>Matlab</strong> script to plot the distance traveled by the car as a function of time (plot time in the x-axis). Label your<br />

axes and place a descriptive title for this plot.<br />

c) Plot the speed of the car in miles per hour (in y-axis) vs time (x- axis). Label the axes and add a title. Change the line<br />

color to red and line width 3.<br />

d) Find the average speed of the car through the complete speed profile.<br />

e) Find the number of seconds the car spends at a red traffic light.<br />

Problem 3<br />

Data has been collected in California (Highway 101) using new speed sensors. A file called highwayData.m contains samples of<br />

vehicle speed and highway density data for this problem. Traffic flow density and traffic flow speed are two key variables of<br />

interest to transportation engineers to study the level of service offered by highway. The file contains four columns as shown<br />

below.<br />

% Traffic Flow Data<br />

% Highway 101<br />

%<br />

% Column 1 = Density (veh/km-lane)<br />

CEE 3604 A1 Trani Page 2 of 3


% Column 2 = Speed (km/hr)<br />

% Column 3 = Flow (veh/hr per lane)<br />

% Column 4 ignore for this problem<br />

9.5 110 1044 106<br />

7.8 109 853 128<br />

9.3 109 1012 108<br />

......<br />

a) Use <strong>Matlab</strong> to plot the values of Density (x-axis) vs Speed (y-axis). Comment of the trend observed. Label the axes in the plot<br />

and use a red marker “o” to indicate each data point in your plot.<br />

b) Using the “Basic Fitting” capabilities in <strong>Matlab</strong> (look at the “Tools” pull down menu in your plot), fit a first degree polynomial to<br />

the data. Indicate the equation of the polynomial and comment on how well the polynomial fits the data.<br />

c) The “density” of the traffic on the highway is an indicator of the number of vehicles per kilometer (per lane) traveling on the<br />

highway. If one night the traffic sensors detect 10 vehicles per kilometer, estimate the speed of the traffic flow (in km/hr).<br />

Problem 4<br />

An empirical formula used to estimate the thickness of an airport pavement is:<br />

t =<br />

where:<br />

P<br />

8.1CBR + A π<br />

t is the design pavement thickness (in inches)<br />

P is the equivalent single wheel load of the aircraft tires on the pavement (in pounds)<br />

A is the single tire contact area (square inches)<br />

CBR is the California Bearing Ratio (a dimensionless factor a function of the physical supporting properties of the soil)<br />

a) Create a <strong>Matlab</strong> script to calculate parametrically the pavement thicknesses required to support an Airbus A380 with P =<br />

60,000 lbs and A = 340 square inches for various values of CBR ranging from 10 to 50. In your calculations use vector<br />

operations (read pages 7-14 in document matlab_matrices.pdf or http://128.173.204.63/courses/matlab/<br />

matlab_matrices.pdf).<br />

b) Plot the solutions obtained in part (a) and label accordingly.<br />

CEE 3604 A1 Trani Page 3 of 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!