Question: 2 . Extract all the electrical output datapoints: Electricity output ( GWh ) and store it to a 3 2 x 3 matrix. Make sure
Extract all the electrical output datapoints: Electricity output GWh and store it to a x matrix. Make sure that each energy source is contained in a column. Also create a x cell array that stores the energy source names from the datafile consider the readcell function Extract the dates as a x column vector exclude the provisional year Extract the provisional year incomplete last year of datapoints. Append the year 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 Also create the cell array that is needed for the legend shown below: Plot the energy sources output data for all years Use the below figure as a reference Fill the missing values of the dataset the provisional year with estimated values based on a moving average mean of the previous years as follows: a year window, b year window c year window and d year window. Store each vector of results as another row in a matrix. First implement it with manually repeated code then improve the code to make use of a for loop instead. Hint: Replace the last year's datapoints with NaN before estimating Plot the estimated data versus the provided data for all the sources refer to example for more details on the figure: Analyse the figure and give your own interpretation about the following:
Which estimate performed the best? Motivate your answer based on the figure data.How did the Fossil energy source estimation perform over the four time spans?How did the Nuclear energy source estimation perform over the four time spans?How did the Renewable energy source estimation perform over the four time spans?How did the Renewable energy source versus the Nuclear energy source estimation perform over the four time spans? Determine the error percentages between the four estimated electrical outputs for and the given data. The result should be stored in a x matrix with each estimate as a column.
Use the formula: Plot the error data with proper annotations refer to example to clearly distinguish between the different estimates.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
