THE CITY COLLEGE OF CITY UNIVERSITY OF NEW YORK

Computer Aided Analysis for Electrical Engineering (ENGR 103 P, R & G)

Project I

 

The corvRain.dat file contains monthly precipitation data for Corvallis, Oregon, from 1890 to 1994.The data are organized into columns, where the first column lists the year and the next 12 columns give the precipitation, in hundredths of an inch for each month. Write a Matlab program to:

  1. Compute, print and plot the total amount of rainfall for each month over the period from 1890 to 1994.

  2. Compute and print the average rainfall for each month.

  3. Compute and plot the yearly total precipitation from 1890 to 1994.

  4. Compute, print and plot on the same graph of (3) the highest and the lowest annual precipitation for that period (as straight lines on the graph).

Report the averages and totals in inches, not hundredths of an inch.

 

New MATLAB Functions you might need

  • The loadColData function will be helpful in reading the data without having to delete the column headings.

  • mean

  • max

  • min

  • fprintf

[HOME] [EDUCATION] [TEACHING] [RESEARCH] [RESUME] [LINKS]
For problems or questions regarding this page, contact: khalilan@ee.ccny.cuny.edu