diff --git a/README.md b/README.md index b3efe5c..7532f66 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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])