Ngue 3d Model % Using Fourth Ode23tb Solver %: Function

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

%Dengue 3d model

% Using fourth ode23tb solver


%
function dengue
clc
clear all
%Define TOL for Bisection Method
%Define constant values
mu_h=1/25000;
mu_v=1/4;
N_h=10000;
N_v=5000/mu_v;
C_hv=0.75*0.5;
C_vh=0.75*1.0;
t=200;
%Dimensionless
options = odeset('RelTol',1E-4,'AbsTol',[1E-6,1E-6,1E6],'Stats','on','MaxStep',1E-2);
[Z,Y] = ode23tb(@SYS_2,[0:0.001:1],[0.9,0.0001,0],options);

%
%
%
%
plot(Z*t,Y(:,2)*N_h,'b',Z*t,Y(:,3)*N_v,'r')
pause
plot(Z*t,Y(:,1)*N_h,'b')
function dy = SYS_2(Z,Y)

dy = zeros(3,1);

mu_h=1/25000;
mu_v=1/4;
N_h=10000;
N_v=5000/mu_v;
C_hv=0.75*0.5;
C_vh=0.75*1.0;
t=200;

gamma_h=1/3-1/25000;
C_1=mu_h*t;
C_2=t*C_vh*N_v/N_h;
C_3=(mu_h+gamma_h)*t;
C_4=C_hv*t;
C_5=mu_v*t;

dy(1) = C_1*(1-Y(1))-C_2*Y(1)*Y(3);
dy(2) = C_2*Y(1)*Y(3)-C_3*Y(2);
dy(3) =C_4*Y(2)*(1-Y(3))-C_5*Y(3);

You might also like