Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
01_ME3255_repo/cumulativeUSenergy.m
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
7 lines (7 sloc)
282 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cumdata=cumsum(data)./(10^6); | |
% cumulates the data from the table and turns the data into a vector | |
plot(data(:,1),cumdata(:,3),data(:,1),cumdata(:,9)) | |
title('Cumulative US energy consumption') | |
xlabel('Year') | |
ylabel('Energy Use (Quintilions of BTUs)') | |
print('figure_03.png','-dpng') |