Professional Documents
Culture Documents
Covid 19 Spread
Covid 19 Spread
COVID 19 SPREAD
Now, I have written a program in MATLAB 2020A, which uses the exponential
growth model for predicting the number of covid19 patients in the coming days.
2
I have used the above data, for finding the model. If, I am wrong then please
forgive me. As to err is human. Everyone should try.
Thanks
clc;
clear all;
close all;
format long;
% Define the symbolic variable rate r for the spread of covid 19 virus.
syms r;
% Enter the data of covid-19 confirmed cases for the last 14-days as a
vector ..
% Enter the no. of covid 19 patients on day1 which is May 22nd 2020
% Enter the no. of covid 19 patients on day14 which is 4th june 2020
% Enter the day until you have collected the data which is day 14
t = input('Enter the count of the last day for which you have collected the
covid 19 patients\n t = ');
rate = solve(eqn,r);
Rate = double(subs(rate))
% WE SHALL GET THE FOLLOWING MODEL WE GET IS THE FOLLOWING which will give us
the no. of covid 19 patients at a particular day...
for i = 1: length(covid1914daysdata)
fprintf("\n\n\n")
for i = 1: length(noofcovid)
end
plot(time, noofcovid)
Rate =
0.037138911796833
1.8
1.6
1.4
1.2
0.8
0.6
0.4
X0
0.2
Y 50690
0
0 10 20 30 40 50 60 70 80 90 100
Time which is number of days