Question: 1 . Import data into a numerical matrix called raw _ data from the project's data file with the function readmatrix ( ) . Extract

1. Import data into a numerical matrix called raw_data from the project's data file with the
function readmatrix().
Extract all the electrical output datapoints (GWh) and store it to a 323 matrix. Make sure that
each energy source is contained in a column. Also create a 13 cell array that stores the energy
source names from the datafile (consider the readcell() function).
Extract the dates as a 321 column vector (exclude the provisional year).
Extract the provisional year (incomplete last year of 2022) datapoints.
Append the year 2022 as the last element of the dates vector.
Create a copy of the data variable and scale the fossil fuel data down by a factor of 10. Also
create the cell array that is needed for the legend shown below:
Fossil Energy 10
Nuclear Energy
Renewable Energy
1 . Import data into a numerical matrix called

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!