Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Epidemia Laura
Epidemia Laura
N=1500;
Ni(0)=50;
Ns(0)=900;
α=0.0008;
γ=0.01;
β=0.2;
The number of infected members of the population The number of members of the population susceptible to infection but not ill
900
400 Ni (t) Ns(t)
800
350
700
300
600
250
500
200
400
150
300 X: 200
Y: 250.4
100
X: 198.9
200
Y: 62.7
50
100
0 50 100 150 200 0 50 100 150 200
time [days] time [days]
The number of infected members of the population The number of members of the population susceptible to infection but not ill
900
Ni (t) Ns(t)
550
800
500
700
450
400 600
350 500
300
400
250
300
200
200
150 X: 99.27
Y: 125.1
100 X: 99.27
100
Y: 69.06
50
0 20 40 60 80 100 0 20 40 60 80 100
time [days] time [days]
clc
clear
global alf gam beta N
k=4;
N=1000;
N1=50;
N2=800;
ts=[0 200];
%Const
alf=0.0008;
gam=0.01;
beta=0.2;
N0=[N1 N2];
[tS,NN]=ode45(@funcion,ts,N0);
subplot(1,2,1)
plot(tS,NN(:,1),'color',[0.1 0.7 0.3],'linewidth',2)
grid minor
%число инфицированных членов популяции
title('The number of infected members of the population')
xlabel('tiempo [Años]')
legend('N_i(t)')
axis([0 max(tS) min(NN(:,1)) max(NN(:,1))])
subplot(1,2,2)
plot(tS,NN(:,2),'color',[0.8 0.3 0.3],'linewidth',2)
grid minor
%число членов популяции восприимчивых к инфекции, но не болеющих
title('The number of members of the population susceptible to infection
but not ill')
xlabel('tiempo [Años]')
legend('N_s(t)')
axis([0 max(tS) min(NN(:,2)) max(NN(:,2))])
function dN = funcion(t,x)
global alf gam beta N
Ni=x(1);
Ns=x(2);
dN=[(alf*Ns-beta)*Ni ; gam*(N-Ns)-alf*Ni*Ns];
end