Move quickly from one page to another within COVID-19 Series from MATLAB Helper:
We are starting with preprocessing data:
%% Read the excel file for covid cases (up to 22/05/20)
data = readtable('Colombia_COVID19.csv');
time = [1:1:row]'; %days until today
infected_real = table2array(data(:,3));
recovered_real = table2array(data(:,5));
Using table2array, we can extract data for infected and recovered individuals.
Estimating ???? and ????
The same approach for estimating ???? and ???? has been taken.
%% Computing beta and gamma
b(isnan(b)) = ;
gamma(isnan(gamma)) = ;
Additionally, the reshape function was used for converting matrices values into vector values, and then, the median was computed.
Building and Plotting SIR model
The SIR model is built in the model function
function dydt = model(t,y)
dydt = [-beta/n*y(1)*y(2);beta/n*y(1)*y(2)-gamma*y(2);gamma*y(2)];
Once the model is built, we plot the results. For this, we define initial conditions for the model with the CI variable. Then, Infected and recovered individuals are chosen to be shown.
%% Plotting model
CI=[susceptible_real(1);1;0]; %FOR S,I,R
[t,y] = ode45(@model,time_span,CI);
We have used data untill 31st May 2020 for all these analysis. We have seen some approaches to modelling diseases such as COVID-19 through MATLAB. We have found essential characteristics within this process. We have done Data Analysis and Data Extraction and included a reliable source for the COVID-19 data. We have used preprocessing to extract a subset of the collected data and organise the data accurately. We have done Data Modelling with model construction, i.e. finding the best model that fits the COVID-19 pandemic. We have done the calculation of model parameters using real collected data and finally done the Data Visualisation. All these steps were essential, and luckily, MATLAB has so many functions and tool to use in the given scenario.
Now summing our analysis and coming to a definite conclusion, India's COVID-19 case tally climbed from 100 to one lakh in just 64 days as per the data sourced from the Union Ministry of Health & Family Welfare (MoHFW). On comparing this with global data, sourced from Worldometers, it has been found out that India's COVID-19 growth rate is more than double the number of days as compared to Colombia.
Our COVID-19 codes and analysis have been made for educational and research purpose. We have shown different approaches of Pandemic Modelling for each state and the accuracy of result is not guaranteed for real-life situation. We wish for early end of this pandemic. Now it's in our hands; we need to take our responsibilities & take proper precautions.
Now let's have a quick view of the precautions.
If you have been facing the symptoms of Cold and Cough or the one's shown with COVID-19, then self-isolate yourself with home quarantine for 14 days. So stay home stay safe; this is the best way you can contribute to the betterment of the nation.