a6_cee3804_2011

a6_cee3804_2011 - CEE 3804: Computer Applications in Civil...

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

View Full Document Right Arrow Icon
CEE 3804: Computer Applications in Civil Engineering Spring 2011 Assignment 6: Matlab Functions Date Due: April 5, 2011 Instructor: Trani Problem 1 A civil engineer is designing a rainstorm water management system for a shopping mall. During a severe thunderstorm, the water runoff generated by the large parking lot at the shopping mall is given by the function: runoff = k 2 + k 1 sin( t / k 3 ) e ( t / k 4 ) Where runoff is the runoff volume (cubic meters per second) generated by the parking lot, t is the time (in seconds) after the thunderstorm starts and k 1 through k 4 are parameters of the runoff function. Task 1 Create a Matlab function to calculate the runoff for a given value of time t. As part of the input variables to the function runoff, include the four input parameters k1 through k4 for a 100 year storm with numerical values as follows: k1 = 50; k2 = 2; k3 = 1500; k4 = 800; Task 2 Create a Matlab script to call the function created in Task 1. Test the function for values of time (t) starting at t=0 and ending at t=4500 seconds. Plot the runoff as a function of time. Label appropriately.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/01/2012 for the course CEE 3804 taught by Professor Aatrani during the Spring '07 term at Virginia Tech.

Page1 / 3

a6_cee3804_2011 - CEE 3804: Computer Applications in Civil...

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

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