Question
Please use matlab language You are provided with a modified file provided by Our World in Data that contains COVID?19 data. The file is named
Please use matlab language
You are provided with a modified file provided by Our World in Data that contains COVID?19 data. The file is named owid?covid?data.xlsx. It contains 43824 rows and 42 columns of data. You cannot modify any contents of the file.
Open the file and familiarise yourself with the headers. Some of the key headers include:
? Location: The location/country
? Continent: The continent of the location
? Days_tracked: The days since COVID?19 was first tracked in the location
? Total_cases: The total cases of COVID?19
? New_cases: The new daily cases of COVID?19
? Total_deaths: The total deaths due to COVID?19
? New_deaths: The new daily deaths due to COVID?19
Source: https://ourworldindata.org/covid?cases
Q1a
In the Q1a.m file, use importdata() to import the contents of owid?covid?data.xlsx. It is important to check what fields the imported data structure contains.
Use input() to prompt the user for a location. In figure(1)1, make a 2?by?2 subplot and plot the following with a '??.' (dotted?double?dash) line specification. Turn on the grid and provide a title that includes the location for all panels.
? [top?left panel] Total cases against days tracked
? [top?right panel] Total deaths against days tracked
? [bottom?left panel] New cases against days tracked
? [bottom?right panel] New deaths against days tracked
The code should continue to prompt the user if they would like to repeat the same task with another location. 1
Data for another country should overwrite figure(1) . An example output of the process is provided below.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started