
A sample of the data provided in the Microsoft Excel file EnergyData.xlsx online follows. The file contains energy consumption data by energy source per year in the United States, measured in petaBTUs.
a. Write the MATLAB code necessary to read the Microsoft Excel file and store each column of data into different variables. Create the following:
- Yr: A vector of all of the years in the worksheet.
- FF: A vector of all of the fossil fuels for each year in Yr.
- ENI: A vector of all electric imports for each year in Yr.
- Nuc: A vector of all nuclear energy consumption for each year in Yr.
- Ren: A vector of all renewable energy consumption for each year in Yr.
- Hdr: A cell array of all of the headers in row 1.
You may not hard-code these variables—they should be imported from the Excel file.
b. Create a new variable. Totalconsumption, which contains the sum of the four columns of energy consumption data for each year. In other words, since all five of the
c. Calculate the average fossil fuel consumption in the entire data set. For this code, you may assume that you have correctly defined FF, the variable containing the fossil fuel consumption data, in part (a). Display the result of the calculation in the following format, where the number is shown to two decimal places:
The average fossil fuel consumption is _____ petaBTU.

Want to see the full answer?
Check out a sample textbook solution
Chapter 17 Solutions
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
- (read image) (answer given)arrow_forward11-5. Compute all the dimensional changes for the steel bar when subjected to the loads shown. The proportional limit of the steel is 230 MPa. 265 kN 100 mm 600 kN 25 mm thickness X Z 600 kN 450 mm E=207×103 MPa; μ= 0.25 265 kNarrow_forwardT₁ F Rd = 0.2 m md = 2 kg T₂ Tz1 Rc = 0.4 m mc = 5 kg m = 3 kgarrow_forward
- 2. Find a basis of solutions by the Frobenius method. Try to identify the series as expansions of known functions. (x + 2)²y" + (x + 2)y' - y = 0 ; Hint: Let: z = x+2arrow_forward1. Find a power series solution in powers of x. y" - y' + x²y = 0arrow_forward3. Find a basis of solutions by the Frobenius method. Try to identify the series as expansions of known functions. 8x2y" +10xy' + (x 1)y = 0 -arrow_forward
- Hello I was going over the solution for this probem and I'm a bit confused on the last part. Can you please explain to me 1^4 was used for the Co of the tubular cross section? Thank you!arrow_forwardBlood (HD = 0.45 in large diameter tubes) is forced through hollow fiber tubes that are 20 µm in diameter.Equating the volumetric flowrate expressions from (1) assuming marginal zone theory and (2) using an apparentviscosity for the blood, estimate the marginal zone thickness at this diameter. The viscosity of plasma is 1.2 cParrow_forwardQ2: Find the shear load on bolt A for the connection shown in Figure 2. Dimensions are in mm Fig. 2 24 0-0 0-0 A 180kN (10 Markarrow_forward
- determine the direction and magnitude of angular velocity ω3 of link CD in the four-bar linkage using the relative velocity graphical methodarrow_forwardFour-bar linkage mechanism, AB=40mm, BC=60mm, CD=70mm, AD=80mm, =60°, w1=10rad/s. Determine the direction and magnitude of w3 using relative motion graphical method. A B 2 3 77777 477777arrow_forwardFour-bar linkage mechanism, AB=40mm, BC=60mm, CD=70mm, AD=80mm, =60°, w1=10rad/s. Determine the direction and magnitude of w3 using relative motion graphical method. A B 2 3 77777 477777arrow_forward
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY





