Question: Read and plot data [20] Edit the file “electricity.txt" used for Excel assignment. Only use rows from 1994 to
Posted: Wed May 11, 2022 9:43 pm
Question: Read and plot data [20] Edit the file “electricity.txt" used for Excel assignment. Only use rows from 1994 to 2014. Only use columns: Year, Brazil, China and Mauritius. Write an Octave script that reads in the electricity data from the modified “electricity.txt" file and plots the data as a line graph. Plot each line using a different colour. Label your X- and y-axis, "Year" and "Electricity Consumption" respectively. Include an appropriate legend. Ensure grid is displayed. Set axis range to [1993, 2015, 500, 4000). Set title to "Electricity consumption over 20 years". Electricity consumption over 20 years TEL Electricity Consumplion ņ