Skip to content

Commit

Permalink
Energy Plots
Browse files Browse the repository at this point in the history
  • Loading branch information
Braisted committed Sep 12, 2017
1 parent 19ed571 commit e7d9b33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions US_energy_by_sector_code.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
title('US Energy Consumption from 1949 to 2016')


rescum=cumsum(data(:,3))./1000000;%cumulative sum of residential energy
rescum=cumsum(data(:,3))./1000000;%cumulative sum of residential energy
%consumption in quintillions
transcum=cumsum(data(:,9))./1000000;%cumulative sum of transportational
transcum=cumsum(data(:,9))./1000000;%cumulative sum of transportational
%energy consumption in quintillions
figure(2)
plot(data(:,1),rescum,data(:,1),transcum)
Expand Down

0 comments on commit e7d9b33

Please sign in to comment.