Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
teb11007 committed Sep 13, 2017
1 parent 5b1db52 commit 91d61e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -23,6 +23,8 @@ stdev of A_66 = 9.07
data=dlmread('US_energy_by_sector.csv',',',2,0);
h=figure();
plot(data(:,1),data(:,3),data(:,1),data(:,9));
%plotting residential energy consumption and transportational energy
%consumption from 1949 to 2016 in trillions of BTUs
set(0, 'defaultAxesFontSize', 16)
set(0,'defaultTextFontSize',14)
set(0,'defaultLineLineWidth',3)
Expand All @@ -34,9 +36,9 @@ title('US Energy Consumption from 1949 to 2016')
saveas(h,'figure_01.png')
rescum=cumsum(data(:,3))./1000000;%cumulative sum of residential energy
%consumption in quintillions
%consumption in quintillions of BTUs
transcum=cumsum(data(:,9))./1000000;%cumulative sum of transportational
%energy consumption in quintillions
%energy consumption in quintillions of BTUs
h=figure();
plot(data(:,1),rescum,data(:,1),transcum)
set(gcf, 'Position', [500, 200, 1000, 800])
Expand Down

0 comments on commit 91d61e3

Please sign in to comment.