From e7d9b3391fd1b75e398f6d8d0ffa0708bd945c0d Mon Sep 17 00:00:00 2001 From: Braisted Date: Tue, 12 Sep 2017 12:02:09 -0400 Subject: [PATCH] Energy Plots --- US_energy_by_sector_code.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/US_energy_by_sector_code.m b/US_energy_by_sector_code.m index 2fb6834..5578920 100644 --- a/US_energy_by_sector_code.m +++ b/US_energy_by_sector_code.m @@ -11,9 +11,9 @@ legend('Residential','Transportation','Location','northwest') 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)