# HW#3 - 'b title'Oil and Gas Average'fontsize,12...

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

3. Script file fid=fopen( 'McClean_Bowman.txt' , 'r' ) heading1=fgetl(fid); heading2=fgetl(fid); heading3=fgetl(fid); heading4=fgetl(fid); heading5=fgetl(fid); b=fscanf(fid, '%f' ,[6 39])'; fclose(fid); year=b(:,1); gas=b(:,2); oil=b(:,3); avggas=b(:,4); avgoil=b(:,5); avgwtr=b(:,6); average_gas=sum(gas)/39 average_oil=sum(oil)/39 avg=[average_gas average_oil]; save avgvals.txt avg -ascii plot(year,avggas, 'g--' ,year,avgoil,

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 'b' ) title( 'Oil and Gas Average' , 'fontsize' ,12) legend( 'gas(MCF/year)' , 'oil(BBL/year)' ) xlabel( 'time(year)' , 'fontsize' ,12) ylabel( 'Oil and Gas Average' , 'fontsize' ,12) axis([1970 2010 0 50]) 1970 1975 1980 1985 1990 1995 2000 2005 2010 5 10 15 20 25 30 35 40 45 50 Oil and Gas Average time(year) Oil and Gas Average gas(MCF/year) oil(BBL/year) Graph...
View Full Document

## This note was uploaded on 01/30/2011 for the course PGE 323K taught by Professor Lake during the Spring '08 term at University of Texas.

### Page1 / 2

HW#3 - 'b title'Oil and Gas Average'fontsize,12...

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

View Full Document
Ask a homework question - tutors are online